K Permutations of N With Repetition

Counting the number of ordered sequences of length k drawn from a set of n distinct items, where items may be repeated. The count is n^k, generalized by the multiplication principle to handle positions with different or restricted numbers of choices.

Step 1 of 157%

Tutorial

K-Permutations With Repetition

A kk-permutation of nn with repetition is an ordered sequence of length kk drawn from a set of nn distinct items, where each item may be reused any number of times. The number of such sequences is

nk.n^k.

For example, the number of binary strings of length 33 is 23=8.2^3 = 8. Listing them confirms this:

000, 001, 010, 011, 100, 101, 110, 111.000,\ 001,\ 010,\ 011,\ 100,\ 101,\ 110,\ 111.

Order matters, so 001001 and 010010 count as distinct sequences.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle