[guided]The previous step handled the case of irrational \emph{leading} coefficient. But the hypothesis of the theorem only requires \emph{some} non-constant coefficient $\alpha_j$ ($j\ge 1$) to be irrational. If only $\alpha_2$ is irrational while $\alpha_3,\ldots,\alpha_d$ are rational, the leading coefficient $\alpha_d$ is rational, so the previous step does not apply directly. The idea is to push the rational higher-degree contributions into an integer (which $\mathrm e$ does not see) by working along arithmetic progressions $n=Qu+a$ for a fixed common denominator $Q$.
Define the highest irrational index:
\begin{align*}
m:=\max\{j\in\{1,\ldots,d\}:\alpha_j\notin\mathbb{Q}\}.
\end{align*}
This maximum exists because the hypothesis asserts the set on the right is non-empty. By construction $\alpha_m\notin\mathbb{Q}$ and every higher-index coefficient $\alpha_\ell$ for $\ell>m$ is rational. Split the polynomial accordingly into a rational high part and an irrational-leading low part:
\begin{align*}
p_{\mathrm{rat}}:\mathbb{R}&\to\mathbb{R}\\
t&\mapsto\sum_{\ell=m+1}^{d}\alpha_\ell t^\ell,
\end{align*}
with $p_{\mathrm{rat}}\equiv 0$ when $m=d$ (empty sum).
Choose $Q\in\mathbb{N}$ with $Q\alpha_\ell\in\mathbb{Z}$ for every $\ell\in\{m+1,\ldots,d\}$: take $Q$ to be the least common multiple of the denominators of the (finitely many) rational numbers $\alpha_{m+1},\ldots,\alpha_d$ in lowest terms, and set $Q=1$ if $m=d$. For each residue $a\in\{0,1,\ldots,Q-1\}$, define the restriction polynomial
\begin{align*}
s_a:\mathbb{R}&\to\mathbb{R}\\
u&\mapsto\sum_{\ell=0}^{m}\alpha_\ell(Qu+a)^\ell.
\end{align*}
The polynomial $s_a$ has degree $m$ because $\alpha_m\ne 0$, and expanding $(Qu+a)^m$ via the [Binomial Theorem](/page/Binomial%20Theorem) shows the coefficient of $u^m$ is $\alpha_m Q^m$. Since $\alpha_m\notin\mathbb{Q}$ and $Q^m\in\mathbb{N}$, $\alpha_mQ^m\notin\mathbb{Q}$ — the inductive hypothesis $\mathsf{L}(m)$ from the previous step applies to $s_a$.
Why does $p_{\mathrm{rat}}$ disappear modulo $1$? For $u\in\mathbb{N}_0$, $a\in\{0,\ldots,Q-1\}$, and $\ell\in\{m+1,\ldots,d\}$, the [Binomial Theorem](/page/Binomial%20Theorem) gives
\begin{align*}
(Qu+a)^\ell-a^\ell=\sum_{j=1}^{\ell}\binom{\ell}{j}(Qu)^j a^{\ell-j}=Q\sum_{j=1}^{\ell}\binom{\ell}{j}Q^{j-1}u^j a^{\ell-j}\in Q\mathbb{Z}.
\end{align*}
Multiplying by $\alpha_\ell$ and using $Q\alpha_\ell\in\mathbb{Z}$:
\begin{align*}
\alpha_\ell\bigl((Qu+a)^\ell-a^\ell\bigr)\in\mathbb{Z}.
\end{align*}
Summing over $\ell\in\{m+1,\ldots,d\}$:
\begin{align*}
p_{\mathrm{rat}}(Qu+a)-p_{\mathrm{rat}}(a)\in\mathbb{Z}.
\end{align*}
Since $\mathrm e$ is identically $1$ on $\mathbb{Z}$, this contributes a constant phase only:
\begin{align*}
\mathrm e(kp(Qu+a))
&=\mathrm e(kp_{\mathrm{rat}}(Qu+a))\,\mathrm e(ks_a(u))\\
&=\mathrm e(kp_{\mathrm{rat}}(a))\,\mathrm e(ks_a(u)).
\end{align*}
We now reassemble the average. For $N\in\mathbb{N}$ and $a\in\{0,\ldots,Q-1\}$, let $M_{N,a}:=\#\{u\in\mathbb{N}_0:Qu+a\le N-1\}$ count the elements of residue class $a$ in $\{0,\ldots,N-1\}$. Each $n\in\{0,\ldots,N-1\}$ lies in exactly one residue class modulo $Q$, so the residue classes partition $\{0,\ldots,N-1\}$. Splitting $A_N(k,p)$ accordingly and substituting:
\begin{align*}
A_N(k,p)
&=\sum_{a=0}^{Q-1}\frac{1}{N}\sum_{u=0}^{M_{N,a}-1}\mathrm e(kp(Qu+a))\\
&=\sum_{a=0}^{Q-1}\frac{M_{N,a}}{N}\mathrm e(kp_{\mathrm{rat}}(a))A_{M_{N,a}}(k,s_a).
\end{align*}
Finally, take $N\to\infty$. For each fixed $a$, $M_{N,a}/N\to 1/Q$ and in particular $M_{N,a}\to\infty$. The polynomial $s_a$ has degree $m\ge 1$ and irrational leading coefficient, so $\mathsf{L}(m)$ from the previous step gives $A_{M_{N,a}}(k,s_a)\to 0$. Each summand has modulus at most $|M_{N,a}/N|\cdot|A_{M_{N,a}}(k,s_a)|\le|A_{M_{N,a}}(k,s_a)|\to 0$, and there are only $Q$ summands, so $A_N(k,p)\to 0$.[/guided]