Continuing what I left off yesterday.
@ganeshie8 urgent...
\[x_1 + x_2 + x_3 = 20\]where\[-3 \le x_1 , x_2 , x_3 \]
That reduces to the coefficient of \(x^{20}\) in\[(x^{-3} + x^{-2} + \cdots + x^{20})^3\]
How do I calculate the above?
@dan815 use elementary techniques please
When it comes to these, it really depends on what exactly you want to do with it. There's a few different ways I can play around. Be more precise
\[=\left( x^{-3}\cdot\dfrac{1-x^{30}}{1-x}\right)^3\]
\[= x^{-9}(1-x^{30})^3(1-x)^{-3 }\]
\[x^{-9} (1 - x^{90} - 3x^{30} + 3x^{60})(1-x)^{-3}\]
\[= (x^{-9} - x^{81}-3x^{21} + 3x^{51} )(1-x)^{-3}\]
now the coefficient of \(x^r\) in \((1 - x)^{-n}\) is\[\binom{n+r-1}{r-1}\]
you could also simply use stars and bars
\[x_1 + x_2 + x_3 = 20\]where\[-3 \le x_1 , x_2 , x_3 \] is same as solving \[(y_1+3) + (y_2+3) + (y_3+3) = 20\]where\[0 \le y_1 , y_2 , y_3 \]
hmm, yeah. is it \(y_1 + 3\) or \(y_1 - 3\)?
\(y_i=x_i+3\) so yeah it should be \(y_i-3\)
ok, that's nice.\[\binom{n-1}{k-1}\]
watcha doing?
u want int solutions?
\[\binom{19}{2}\]
I really wasn't trying to solve the problem ... I just want to know the approach to calculate the coefficient of \(x^k\) in huge expressions like the above one.
id just use stars and bars
but sure ill bite, how does it come out to be the coeff of x^k again
oh sorry, I missed all the threes.
\[y_1 + y_2 + y_3 = 29\]
should the number of nonnegative solutions be\[\binom{29-1}{3-1}\]
oh nvm i get whwy its the coeff of x^20 in that expansion kinda neat trick
yeah, it is.
you would still use stars and bars to solve for the coeff i guess now, since theres no real nice way of expanding that
the way to think about this problem is the same as x1+x2+x3=k x1,x2,x3 >= 0
do you know how to solve that problem
allowed -3 what u basicaaly did is just allow more 1s in each place
by introducing -3 you just shifted your number index
ik, ik. there are various tricks to find the coefficient.
ok so watcha looking for now
ya x1+x2+x3=29 is right
for x1,x2,x3 non negative solutions
ok, so nonnegative solutions|dw:1444026999220:dw|
Join our real-time social learning platform and learn together with your friends!