Let $A = \Bbb{Z}_3[x]/(x^2+1)$, the quotient ring by the ideal $(x^2+1)$. Which ones are units?
I did this question in a very boring way, merely listing all the possibilities and check. I cannot find an efficient way to find the unit. Is there any efficient way to do this?
Perhaps the most efficient elementary way of doing it in this case is to note that
and then ask what an inverse for $a+bx$ would look like in general. For this, since we are identifying $x^2+1\sim0$, we can think of $x$ as a square root of $-1$, so you can seek inspiration from the complex numbers. For complex numbers, the inverse of $a+bi$ is given by rationalising the denominator: $$ \frac1{a+bi} = \frac{a-bi}{(a+bi)(a-bi)} = \frac{a-bi}{a^2+b^2} = \frac a{a^2+b^2} + \frac{-b}{a^2+b^2}i $$ you can check that if the right-hand side is well-defined in $A$ (using $x$ instead of $i$), then it will also serve as an inverse. You can now ask when the right-hand side is defined, which is whenever $a^2+b^2\neq0\pmod3$, and this is true whenever $a$ and $b$ are not both zero.
Therefore, the units are $a+bx$ for $a$ and $b$ not both zero, and this constitutes all nonzero elements of $A$.