MathCastle
Counting & ProbabilityMediumCounting: Inclusion–Exclusion & Stars and Bars

Counting: Inclusion–Exclusion & Stars and Bars · Medium problem

How many solutions in nonnegative integers (x1,x2,x3,x4)(x_1,x_2,x_3,x_4) satisfy x1+x2+x3+x4=10x_1+x_2+x_3+x_4=10? (Set up a bijection with stars and bars.)