Combinations with Replacement Explanation

AI Thread Summary
The discussion focuses on understanding the formula for combinations with replacement, expressed as (n+k-1)ℂ(k), which calculates the number of ways to choose k items from n options when repetition is allowed. The problem is illustrated using an example with boxes representing different fruits and balls representing selections, demonstrating how to visualize the distribution of items. The key insight is that the total number of positions for k balls and (n-1) dividers is (n-1+k), leading to the conclusion that the number of combinations is given by (n-1+k) choose k. The discussion also touches on the equivalence of choosing positions for balls versus dividers, reinforcing the formula's validity. Overall, the thread provides a clear explanation of the concept and its mathematical proof through combinatorial reasoning.
chaoseverlasting
Messages
1,050
Reaction score
3
I'm trying to work out the proof of combinations with replacement, but I can't quite understand the result of it.

(n+k-1)ℂ(k) is the result, could somebody please explain this to me?
 
Mathematics news on Phys.org
chaoseverlasting said:
I'm trying to work out the proof of combinations with replacement, but I can't quite understand the result of it.

(n+k-1)ℂ(k) is the result, could somebody please explain this to me?
Could you state fully and precisely what you want to prove?
 
It is the formula for selection of k items with replacement from a set of n items. I understand the result now, but how do I prove it? Apparently its to be done by induction, but I'm not quite sure of how to approach it.
 
If I understood you correctly your problem is the following:
Given n items choose k from them. And replacement means you are allowed to choose an item more than once.

-------------------------

You can interpret the problem in the following way:
Imagine you have n=3 boxes. Each box stands for a fruit:
Apple-Box (Box #1)
Banana-Box (Box #2)
Orange-Box (Box #3)

You have k=10 balls and have to throw the balls into the boxes. Suppose you did the following:
Apple-box: 3 balls
Banana-box: 2 balls
Orange-box: 5 balls
This means you get 3 apples, 2 bananas and 5 oranges.

So, one combination is:
In box 1 we have 3 balls
In box 2 we have 2 balls
In box 3 we have 5 balls

---

We can model this by dividing the 10 balls into 3 blocks:
o o o | o o | o o o o o
The blue bars are the dividers.

Other combinations are:

All balls in box 1 (only apples):
o o o o o o o o o o | |

0 balls in box 1,
3 balls in box 2,
7 balls in box 3
| o o o | o o o o o o o

1 ball in box 1,
4 balls in box 2,
5 balls in box 3
o | o o o o | o o o o oFor n blocks (boxes) we need (n-1) dividers, e.g. n=3 requires (n-1)=2 dividers.
Now, how many "spots" do dividers and balls occupy? We have (n-1) dividers and
k balls, so in total we have (n-1+k) spots.

Then, let's analyze how many different positions there are for the balls:
Since we have (n-1+k) spots and k balls there are (n-1+k)Choose(k) different positions.

\binom {n-1+k} {k}

Of course, you could also ask:
How many different positions are there for the (n-1) dividers?
Since we have (n-1+k) spots and (n-1) dividers there are (n-1+k)Choose(n-1) different positions. But this is the same as above:

\binom{n-1+k}{n-1} = \binom {n-1+k} {k}

----

Further readings:
1. Counting selections with replacement
The derivation is given in the end.

2. Combinations - order doesn't matter, repetitions allowed
This is a PF thread.
 
  • Love
Likes christang_1023
Last edited:
Thanks a lot Edgardo! That really helps man!
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top