I am looking for a ring $R$ in which $2$ is invertible and there are four solutions to $x^2-1=0$.
$R=\Bbb Z/8\Bbb Z$ has the four solutions $1,3,5,7$ to $x^2-1=0$, but $2$ is not invertible.
I am looking for a ring $R$ in which $2$ is invertible and there are four solutions to $x^2-1=0$.
$R=\Bbb Z/8\Bbb Z$ has the four solutions $1,3,5,7$ to $x^2-1=0$, but $2$ is not invertible.
The ring $R=\Bbb{Z}/15\Bbb{Z}$ seems to fit the bill. The solutions are (the cosets of) $\pm1$ and $\pm4$. A process finding the solutions amounts to finding the solutions modulo $3$ and $5$ (two for each), and then combining them using the Chinese Remainder Theorem. There are many examples of how to do that on our site.
Note that this equation is the same as $$ (x - 1)(x + 1) = 0 $$ so, you're looking for a ring in which there are two zero-divisors $a,b$ such that $b - a = 2$ (so that $a = x-1$ and $b = x+1$) and $ab = 0$.
If we restrict our search to $\Bbb Z / n\Bbb Z $, then the only non-invertible elements are the factors of $n$ besides $1$, which are also zero-divisors. So, $n$ will be satisfactory if and only if:
So, for example: $15 = 3 \times 5$ will work, as will $35 = 5 \times 7$, as will $21$ which divides $7 \times 9$.