I have already done these following steps and I'm already lost. Can someone please help me?
$x_1 + x_2 + x_3 + x_4 + x_5 = 22$ when $1 \leq x_n \leq 6$ and $n = 1,2,3,4,5$. Then, \begin{align*} f(x) & = (x+x^2+x^3+x^4+x^5+x^6)^5\\ & = \left(\frac{x(1-x^6)}{1-x}\right)^5\\ & = x^5 \cdot (1-x^6)^5 \cdot (1-x)^{-5} \end{align*}
By using mathematica, we have (already correct): $$x^5(1+x+x^2+x^3+x^4+x^5)^5$$ $$=x^5(x^{25}+5 x^{24}+15 x^{23}+35 x^{22}+70 x^{21}+126 x^{20}+205 x^{19}+305 x^{18}+420 x^{17}+540 x^{16}+651 x^{15}+735 x^{14}+780 x^{13}+780 x^{12}+735 x^{11}+651 x^{10}+540 x^9+420 x^8+305 x^7+205 x^6+126 x^5+70 x^4+35 x^3+15 x^2+5 x+1)$$ $$ = ... + 420x^{22}+ ...$$
so the answer is: 420
===================================================
Because: $$f(x) = x^5+(1+x+x^2+x^3+x^4+x^5)^5$$ $$=x^5[(1+x)(1+x^2+x^4)]^2$$ $$=x^5(1+x)^5[1+x^2(x^2+1)]^5$$
Note that degree of $x^k$ in $[1+x^2(x^2+1)]^5$ is even, odd degree term should be choosing from $(1+x)^5$, that is $x,x^3,x^5$, and corresponding term from $[1+x^2(x^2+1)]^5 $ is $x^{16},x^{14},x^{12}$
therefor: $$[1+x^2(1+x^2)]^5 = 1+C_5^1x^2(1+x^2)+C_5^2x^4(1+x^2)^2+C_5^3x^6(1+x^2)^3+C_5^4x^8(1+x^2)^4+C_5^5x^{10}(1+x^2)^5$$ $$=......+ C_5^3C_3^1x^{12} + (C_5^4C_4^3+C_5^5C_5^2)x^{14}+(C_5^4C_4^4+C_5^5C_5^3)x^{16}+......$$
So, the answer is:
$$C_5^5 \cdot C_5^3C_3^1 + C_5^3 \cdot (C_5^4C_4^3+C_5^5C_5^2) + C_5^1 \cdot (C_5^4C_4^4+C_5^5C_5^3)$$ $$ = 420$$