Consider the polynomial $x^2+x=0$ over $\mathbb Z/n\mathbb Z$
a)Find an n such that the equation has at least 4 solutions
b)Find an n such that the equation has at least 8 solutions
My idea is to check individual n, and I found the answer for a is n=6 at x={0,2,3,5} f(x)={0, 6, 12, 30)
Is there any shorter way?
Look at the structure of this $x(x+1)=0$.
This will always have the solutions $x=0$ and $x=-1=n-1$ and if $n$ is prime that will be all.
But if neither factor is zero, the ring will have zero divisors in it, and you are looking at two consecutive zero divisors, one even and one odd. So the first thing to test is $2 \times 3$, and that works as does $-2\times -3$ which is $4\times 3 \mod 6$.
You will need to think a little harder to find an example with eight solutions.