I recently saw this question:
Find such $n$, that $x^2 \equiv 1 \pmod{n}$ has $16$ solutions.
The solution is $2^3 \cdot 3 \cdot 5 = 120$, because in this product $2^3$ increases the number of solutions fourfold, $3$ doubles it and $5$ also doubles it, to ultimately get $16$ solutions. So, multiplication by new prime number doubles the number of solutions (except for the number $2$).
Then I came across this:
Find the number of solutions for the congruence $x^3-x^2-x+1 \equiv 0 \pmod{7 \cdot17^2}$
I calculated that $x^3-x^2-x+1 \equiv 0 \pmod{17^2}$ has $18$ solutions.
In this case, analogous to the first question, can I say that the result is $18 \cdot 2 = 36$ solutions (and indeed it is), because we are multiplying by the prime number $7$? I expect it's not that simple, so when does such a property hold?
Thanks.