Given that $K$ is a field and $R= K [X] / (X^n)$ where $n \in \mathbb{Z}_{\geq 1},$ $x$ is defined by $x:= X + (X^n) \in R$.
I want to show that the equivalence class $r$ in $R$, represented by $r=a_0 + a_1 X + \cdots+ a_{n-1} X^{n-1}$ with $ a_i \in K$ is a unit if and only if $a_0 \neq 0$.
The fact that it is a unit if $a_0 \neq 0$ then shows that an element $r$ with $a_0 \neq 0$ has an inverse, and I am trying to find this inverse.
Any help is appreciated.
If $a_0 = 0$, we can show that $r$ is a $0$ -divisor. Take $s \in R$ to be the element $s = X^{n-1} \neq 0$. Then $rs = a_1X^n +a_2X^{n+1} + \dots + a_{n-1}X^{2n-1} = 0$ in $R$. Of course, $r$ being a $0$-divisor prevents it from being a unit.
Now, if $a_0 \neq 0$, then we let $s = b_0 + b_1X +b_2X^2 ... +b_{n-1}X^{n-1}$. We pick $b_0 = a_0^{-1}$. Having picked $b_i$, we pick $b_{i+1}$ such that the sum $$b_0a_{i+1} + b_1 a_i \dots + b_{i+1}a_0 = 0$$ for $1\leq i \leq n-2$.
We find that the product $rs$ is $a_0b_0 + (a_0 b_1 +a_1 b_0)X \dots + \big(b_0a_{n-1} + b_1 a_{n-2} \dots + b_{n-1}a_0)X^n + kX^{n} = a_0b_0 = 1$ (where $k$ is some polynomial)