k-combination (n choose k)
See also: Binomial Coefficient
Combination with Repetitions
Number of ways to distribute identical Balls into distinct Boxes ^[https://en.wikipedia.org/wiki/Combination#Number_of_combinations_with_repetitionr צירופים עם חזרות.]
Counting solutions of equation
can also be used for number of nonnegative solutions of equation . i.e. the number of solutions is: .
(for the equation , there are also solution and and these are considered as two solution. for consider them as a single solution use in generating function )
Restrictions
Minimum restrictions
- positive integers (strictly) solutions ( for any ) for need to add to
See also: [[Binomial Coefficient#compositions-of-n|Compositions of n]]
-
for . solutions for such that .
-
solutions for such that . for each
Maximum restrictions
- by Generating Functions
- by Inclusion–exclusion principle with Minimum restrictions. for e.g, the solutions for such that . for each
number solutions of inequality
number of nonnegative solutions of equation . i.e. the number of solutions is:
Sum of first terms greater than or equal to
- nonnegative solutions for , such that .
Combination with Repetitions ()
This is the A088218 sequence, which is total number of leaves in all rooted ordered trees with n edges.