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

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

How many nonnegative integer solutions does x1+x2+x3+x4=20x_1 + x_2 + x_3 + x_4 = 20 have subject to x1≤6x_1 \le 6 and x2≤8x_2 \le 8?