MathCastle
ChallengeMediumCounting: Inclusion–Exclusion & Stars and Bars

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

How many ordered quadruples (x1,x2,x3,x4)(x_1,x_2,x_3,x_4) of integers with 0≤xi≤60\le x_i\le 6 satisfy x1+x2+x3+x4=15x_1+x_2+x_3+x_4=15?