Solving a Combinatorial Problem Using Bijection
Question: For
The answer is
To fully understand how to derive the above formula, let us look at a special case, where
Since we know the six 2-digit numbers as shown above, we can establish the following bijection
The bijection tells us that the count of all possibilities is the same as all the arrangements of 2 indistinguishable markers (shown as M in the above picture) and 2 indistinguishable boundaries (they are for the 3 boxes). So the answer to the special case is
Following the ideas used for dealing with the special case, we can now figure out that
Remarks:
- I learned the bijection idea from [1].
- This post is motivated by Alon Amit’s post on Quora.
- This post actually is about OEIS sequence A000581. I have found that the sequence A000581 has a connection with OEIS sequence A035927. The connection is:
where and
References
[1] Casella, G. and Berger, R. (2002). Statistical Inference.