Solution (source code)

= Solution

Integration by parts gives the recurrence
$$
\gamma(x,y)=y^{x-1}e^{-y}+(x-1)\gamma(x-1,y).
$$
Iterating $N$ times yields
$$
\gamma(x,y)=y^{x-1}e^{-y}
\sum_{n=0}^{N-1}(x-1)(x-2)\cdots(x-n)y^{-n}
+R_N,
$$
where the empty product for $n=0$ is one and
$$
R_N=(x-1)(x-2)\cdots(x-N)\gamma(x-N,y).
$$
For fixed $x$, the remainder has the order of the first omitted term as $y\to\infty$. Therefore
$$
\boxed{a_0(x)=1,\qquad
a_n(x)=\prod_{j=1}^n(x-j)\quad(n\geq1).}
$$