Content deleted Content added
Will Orrick (talk | contribs) Undid revision 1261503615 by 50.100.205.138 (talk) It was correct before. These parameters are what you get if you interchange the roles of bars and stars. |
Will Orrick (talk | contribs) Revised statement and proof of Theorem 1: moved link to combinations article from the proof into the example following the theorem statement; separated the proof from the example; elaborated on the correspondence between the k-tuple problem and the counting problem with objects and bins; other wording changes. |
||
Line 14:
For example, if {{math|1=''n'' = 10}} and {{math|1=''k'' = 4}}, the theorem gives the number of solutions to {{math|1=''x''{{sub|1}} + ''x''{{sub|2}} + ''x''{{sub|3}} + ''x''{{sub|4}} = 10}} (with {{math|''x''{{sub|1}}, ''x''{{sub|2}}, ''x''{{sub|3}}, ''x''{{sub|4}} > 0}}) as the [[binomial coefficient]]
:<math>\binom{n - 1}{k - 1} = \binom{10 - 1}{4 - 1} = \binom{9}{3} = 84
where <math>\binom{n - 1}{k - 1}</math> is the number of [[combination]]s of {{math|''n'' − 1}} elements taken {{math|''k'' − 1}} at a time.
This corresponds to [[Composition (combinatorics)|compositions]] of an integer.
Line 32 ⟶ 33:
===Theorem one proof===
The ''n'' objects are now represented as a row of ''n'' stars; adjacent bins are separated by bars. The configuration will be specified by indicating the boundary between the first and second bin, the boundary between the second and third bin, and so on. Hence {{math|''k'' − 1}} bars need to be placed between stars. Because no bin is allowed to be empty, there is at most one bar between any pair of stars. There are {{math|''n'' − 1}} gaps between stars and hence {{math|''n'' − 1}} positions in which a bar may be placed. A configuration is obtained by choosing {{math|''k'' − 1}} of these gaps to contain a bar; therefore there are <math>\tbinom{n - 1}{k - 1}</math> configurations.
For example, with {{math|''n'' {{=}} 7}} and {{math|''k'' {{=}} 3}}, start by placing the stars in a line:▼
===Example===
▲
{{image frame
Line 43 ⟶ 47:
}}
Now indicate the boundaries between the bins:
{{image frame
Line 54 ⟶ 56:
}}
In general two of the six possible bar positions must be chosen. Therefore there are <math>\binom{6}{2} = 15</math> such configurations.
===Theorem two proof===
|