Math 2.0

Combinatorics Basic counting Theorem

Stars and bars

Builds on Binomial coefficientCombinations with repetition

Statement

Let nn and kk be natural numbers with n≥1n \ge 1. Then the number of multisets of size kk with elements in an nn-element set is ( ⁣(nk) ⁣)=(n+k−1k).\left(\!\binom{n}{k}\!\right) = \binom{n + k - 1}{k}. Equivalently, this is the number of solutions (x1,…,xn)(x_1, \dots, x_n) of x1+⋯+xn=kx_1 + \dots + x_n = k in natural numbers.

Remarks

The proof writes a multiset as a row of kk stars and n−1n - 1 bars. The bars separate the stars into nn groups, one group for each element. The number of solutions in positive integers is (k−1n−1)\binom{k - 1}{n - 1} for k≥1k \ge 1. This is the number of compositions of kk into nn parts.

Reading path

To understand this page from the ground up, read these 3 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Binomial coefficient definition
  2. Combinations with repetition definition
  3. Stars and bars statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Stars_and_bars_(combinatorics), Theorem two
About this page
Tag009TEMTQKH
URIm2://009TEMTQKH
Kindstatement, theorem
WritingW0 stub
MSC05A10
StatusThis copy of the site has no build data. Run m2 status 009TEMTQKH.
UsesBinomial coefficient, Combinations with repetition
Same as

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.