Skip to contents

The number of outcomes of n picks from N objects, with replacement and with the order mattering, is N^n (not n^N).

Usage

OrdRep(N, n)

Arguments

N

number of distinct objects in the box.

n

number of picks.

Value

list(n_objects, n_picks, count, log_count).

References

Morin, D. J. (2016). Probability: For the Enthusiastic Beginner. Createspace. Eq. (1.4).

Examples

OrdRep(6, 5)$count
#> [1] 7776