Alternative way of writing the stars and bars formula where each bar is associated with at least one

logiski9s

logiski9s

Answered question

2022-07-08

Alternative way of writing the stars and bars formula where each bar is associated with at least one star.
I was looking for a different way of writing the formula of the number of different k-tuples of non-negative integers whose sum is equal to n and I thought of this formula followed by this combinatorial proof:
i = 1 k ( n + 1 i ) ( k 1 i 1 )
The first combination is the number of positions that we can choose from to place the bars. There are n + 1 positions to choose from, since now we can also place the bars before and after the stars. The next combination is the number of different ways of splitting the stars between the positions that were chosen for the bars to be placed.
Lastly, we'll have to add all the different ways of combinations of bar positions and number of bars in each position. I haven't found a flaw in my proof yet but I can't seem to conclude that the above formula is equal to
( n + k 1 k 1 )
Could someone more experienced verify my proof or show me where the flaw is?

Answer & Explanation

Kiana Cantu

Kiana Cantu

Beginner2022-07-09Added 22 answers

Step 1
Your formula and argument are incorrect, but they can both be made correct with a small change. The correct formula is i = 1 n + 1 ( n + 1 i ) ( k 2 i 1 )
The idea is this; once you have chosen the i spaces out of n + 1 which will receive bars, you now need to split the k 1 bars into i non-empty groups. This can be done in ( k 2 i 1 ) ways; if we now imagine a line of k 1 bars, with k 2 spaces between them, then such a partition is uniquely chosen by selecting a subset of i 1 spaces, and splitting at those spaces.
Step 2
This combinatorial proof establishes the fact that
i = 1 n + 1 ( n + 1 i ) ( k 2 i 1 ) = ( n + k 1 k 1 )
It is easy to give an alternative proof of this by rewriting ( k 2 i 1 ) as ( k 2 k 1 i ) , and applying Vandermonde's identity.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?