While solving an exercise about invertibility of elements in a polynomial ring, I came up with the following "proof" that a polynomial is invertible if its zeroth coefficient is invertible and all higher coefficients are in the Jacobson radical:
Let $A \neq 0$ be a commutative ring with unit, $\mathfrak{N}$ its nilradical and $\mathfrak{R}$ its Jacobson radical, and consider the $A$-module $M = A + \mathfrak{R}((x) + \cdots + (x^n)) \subset A[x]$. By the Nakayama lemma, since $(x) + \cdots + (x^n)$ is finite, we obtain that $M = A$; in particular, the invertible elements of $M$ are exactly those of $A$.
This is certainly wrong, since it is well known that we in fact need a stronger condition: the higher coefficients must not only lie in $\mathfrak{R}$, but in $\mathfrak{N}$! I have, however, been unable so far to spot my mistake. Where am I going wrong?
It does not have to be the case that $\mathfrak{R}((x) + \cdots + (x^n))$ is finite, so Nakayama is not applicable here in general.
There is a second, much more serious error, however: for the argument to work, one would need that $M = A + \mathfrak{R} \cdot \mathfrak{R}((x) + \cdots + (x^n))$, but that does not follow from $M = A + \mathfrak{R}((x) + \cdots + (x^n))$!