k-combination (n choose k)

  • The number of ways to choose elements from a set of size (without regard to the order of choice).
  • Binomial Coefficient

Combination with Repetitions

  • aka: n multichoose k, or multiset coefficient
  • The number of multisets of cardinality , with elements taken from a finite set of cardinality .
  • The number of ways to distribute identical balls into distinct boxes
  • The number of weak compositions of into parts
  • The number of nonnegative integer solutions of (with regard to the order of variables. i.e. and are considered as two different solutions. for consider them as a single solution use in Generating Functions)

Identities

  • (where is a rising factorial)

Special Case:

This is the A088218 sequence, which is total number of leaves in all rooted ordered trees with n edges.

k-composition of n

  • The number of positive integer solutions of (without regard to the order of variables)
  • The -composition of

is the number of all compositions of . (i.e. )

Solutions with Restrictions

Minimum restrictions

  • for . solutions for such that .

  • solutions for such that . for each

Maximum restrictions

Number of Solutions of Inequality

  • The number of nonnegative integer solutions of the inequality

Other

  • The number of nonnegative integer solutions of , such that .