Solve with a generating function. My solution was $$g(x)=\left(\frac{x^0}{0!} + \frac{x^1}{1!}\right)^4 \left(\frac{x^0}{0!} + \frac{x^1}{1!} + \frac{x^2}{2!} + ... \right)^{26-4}$$ $$g(x) = (1 + x)^4e^{22x}$$ $$g(x) =\left( \binom{4}{0}x^0 + ... +\binom{4}{r}x^r... + \binom{4}{4}x^4\right)\sum\nolimits 22^r \frac{x^r}{r!}$$
Then we are trying to find the coefficient of the tenth term I denote as $a_{10}$ $$g(x) = h(x)f(x)$$ where $h(x) = (1 +x)^4$ and $f(x) = e^{22x}$ $$g_{10} =h_0f_{10} + h_1f_{9} + h_2f_{8} + h_3f_{7} + h_4f_{6} $$
$$ = \binom{4}{0}22^{10} + \binom{4}{1}22^{9} + \binom{4}{2}22^{8} + \binom{4}{3}22^{7} + \binom{4}{4}22^{6} $$
Now this is not correct and instead is supposes to be: $$ = \binom{4}{0}\frac{10!}{10!}22^{10} + \binom{4}{1}\frac{10!}{9!}22^{9} + \binom{4}{2}\frac{10!}{8!}22^{8} + \binom{4}{3}\frac{10!}{7!}22^{7} + \binom{4}{4}\frac{10!}{6!}22^{6} $$
1) The correct expression seems to include $\binom{4}{r}\frac{10!}{(10-r)!}$ for evaluating the coefficients of $h(x)$ but why is this?
2) If this if correct, why are we using two different values for $n$? We make $n=4$ for evaluating the coefficient of $(1+x)^4$ but then somehow incorporate $n=10$ for $P(n,r)$