Find the number of positive integral solutions of x + 2 y + 3 z = 1 0 0 .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
nice and easy solution
awesome solution !!
Hint : You would look for the coefficient of x 9 4 in the taylor expansion of ( 1 − x ) − 1 ( 1 − x 2 ) − 1 ( 1 − x 3 ) − 1 about 0 .
What is your reasoning?
How can we do that in terms other than 1-x to power -1
Python solution:
n=0
for x in range(34):
for y in range(51):
for z in range(100):
if x*3+y*2+z == 94:
n += 1
print n
7 8 4
Problem Loading...
Note Loading...
Set Loading...
Range of x,y and z
99 >= x >= 1
48 >= y >= 1
32 >= z >= 1
the system contains one equation and 3 variables we have to take two values arbitrary (y and z i have taken)
when y=1
when y=2
when y=3
and so it goes on till
when y=47
when y=48
Solutions=32+31+31+30+29+29+.....+2+1+1
=2(1+3+5+..+31)+(2 + 4+6+...32)
=512+272=784