Hey.
Why is the number of solutions to the following equation:\[x_1 + x_2 + \cdots + x_k=n\]given \(a_i <x_i < b_i \) equal to the coefficient of \(x^{n}\) in the expansion of\[\prod_{i=1}^{n} \sum_{k=a_i}^{b_i}x^{k}\]
number of solutions =\[x_{i} \]?
Number of solutions = ordered pairs.
@ganeshie8
yeah
ah, kinda makes sense to me now.
ahhgh that given expression is so bad..
I understood why. Now as an example if we want to calculate solutions of\[x_1 + x_2 +x_3=20\]subject to \(x_i \ge -3\) then\[(x^{-3} + x^{-2} + \cdots + x^{26})^3\]coefficient of \(x^{20}\)
\[\left(x^{-3}\cdot \left(\frac{1 - x^{30}}{1 - x}\right)\right)^{3}\]
^ how do we calculate the coefficient of \(x^{20}\) in that?
i didn't get that 2nd step? (x^-3 +x^-2..x^26)^3
ah, the lower restriction is given to us: \(x_1, x_2, x_3 \ge -3\) since their sum is \(20\), the max. value any of them can take is \(26\) (if and only if the other two are -3) thus \(-3 \le x_i \le 26\)
now refer to the above identity
:o ok now i get the ques :)
but how do we calculate the coefficient? :(
ah, since \(1 -x^{30}\) cannot generate \(x^{20}\) we can remove that and find the coefficient of \(x^{20}\) in \(x^{-9} \cdot \dfrac{1}{(1-x)^3}\)
I'm not sure about the above step... can you confirm it?
maybe there are displaying problems... refresh?
generating functions
Join our real-time social learning platform and learn together with your friends!