I'm having a little trouble reconciling two different methods for calculating the number of license plates that can be formed from three letters (from the standard 26-letter alphabet) and four digits, where repetition of characters is allowed and the letters and digits may appear in any order.

The first thought I had was to consider the letters and digits as two separate permutations before mixing them together. There are $26^3$ possible permutations of three letters and $10^4$ possible permutations of four digits. Since the permutations of letters and digits come pre-ordered by definition, all that remains is to choose the letter/digit pattern that appears in the license plate. This can be thought of as either the number of ways to divide the seven license-plate positions into two groups, the number of ways to choose three positions from the seven to contain the letters, or the number of ways to choose four positions from the seven to contain the digits. In any event, this evaluates to $\binom{7}{3}=35$. So, the total number of license plates given these constraints is $35\cdot26^3\cdot10^4=6151600000$.

However, I feel that there should also be a way to approach this problem using the expression for combinations of $r$ objects from a group of $n$ with repetitions allowed, $\binom{r+n-1}{r}$. From my understanding, this formula allows me to determine the number of ways to construct an unordered "pool" of letters and digits by first choosing three letters with repetition allowed,


then choosing four digits with repetition allowed,


then multiplying the two numbers together to get $3276\cdot715=2342340$. From there, there are $7!$ ways to permute any chosen assortment of seven letters and digits, so the final answer is $7!\cdot2342340=11805393600$, nearly twice the previous answer. This second method is motivated by the process used to find the number of three-letter, four-digit license plates that are possible when repetition is not allowed; this calculation would proceed by choosing three letters from a group of 26 (without repetition),


then choosing four digits,


pooling them in $2600\cdot210=546000$ possible ways, then ordering the pool in $7!$ possible ways to yield $7!\cdot546000=2751840000$. It would seem that to translate this calculation to a scenario in which repetition of letters and digits is allowed, one would simply substitute $\binom{r+n-1}{r}$ for $\binom{n}{r}$ (as I did in the second calculation), but this leads to the incongruity presented above.

I'm not sure exactly where my logic is breaking down, but I can trace it back to the idea of permutations with repetition allowed simply being ordered combinations with repetitions allowed. That is, when repetition is not allowed it is true that $$_n P_r=\frac{n!}{(n-r)!}=r!\frac{n!}{r!\,(n-r)!}=r!\cdot \left(_nC_r\right)\text{,}$$ but when repetition is allowed it is clear that $$_n P_r=r^n\neq r!\cdot\frac{(r+n-1)!}{r!\,(n-1)!}=r!\cdot \left(_nC_r\right)\text{.}$$ This discrepency seems counterintuitive given the respective definitions of permutations and combinations. Can somebody help me understand how all of these puzzle pieces fit together, and how they can be applied to the example problem I've given? Thank you!


2 Answers 2


The problem with the second method is double-counting. Namely every sequence containing $n_A$ of letters 'A', $n_B$ of letters 'B' and so on will be counted $$n_A!n_B!\cdots$$ times.

  • $\begingroup$ Thank you for the response! I guess I'm still a little confused about the relationship between permutations with repetitions and combinations with repetition—since the only difference between them is whether order matters or not, shouldn't the number of permutations (with repetitions allowed) be $n!$ times the number of combinations (with repetitions allowed)? $\endgroup$
    – RyanC
    Jun 13, 2020 at 1:19
  • 1
    $\begingroup$ No, it should not. Because it does not hold for single sequence, the number of possible permutations of which being $$\frac {n!}{n_1!n_2!\cdots n_k!}.$$ $\endgroup$
    – user
    Jun 13, 2020 at 5:14

The answer is:

$${7 \choose 3} 26^3 10^4$$

Your second way is filled with errors. Stick to the simple answer.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .