The number of ordered triplets of non-negative integers which are solutions of the equation x + y + z = 100 is
5151
The number of triplets of non-negative integers which are solutions of x + y + z = 100.
= Coefficient of x100 in (1+x+x2+x3+........)(1+x+x2+x3+...............)(1+x+x2+x3+..........)
= Coefficient of x100 in (1+x+x2+x3+..........)3
= Coefficient of x100 in (1−x)−3
= Coefficient of x100 in (1+3C1x+4C2x2+........+100+2C100x100+............) = 100+2C100 = 102C2
= (100+1)(100+2)2 = 101 × 51 = 5151.
Alternative
x + y + z = 100
The number of triplets of positive integers which are solutions = n+r−1Cr−1 where n = total number of
similar things and r = Similar things need to distributed among people/places
100+3−1C3−1 = 102C2 = 5151