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 -permutation of with repetition is an ordered sequence of length drawn from a set of distinct items, where each item may be reused any number of times. The number of such sequences is
For example, the number of binary strings of length is Listing them confirms this:
Order matters, so and count as distinct sequences.