I need to solve this congruence: $$x(x^2-1) \equiv 34 \pmod {35}$$ I noticed that the left hand side is divisible by $3$, namely, $x(x-1)(x+1) \equiv0 \pmod 3$. Also, I thought that using the Chinese remainder theorem might work here. However, I can't find a good way to apply this theorem to single $x$'s.
Any hints will be most appreciated.
Asserting that we have $x(x^2-1)\equiv34\pmod{35}\equiv-1\pmod{35}$ is equivalent to asserting we have both$$x(x^2-1)\equiv-1\pmod5\tag1$$and$$x(x^2-1)\equiv-1\pmod7.\tag2$$Equation $(1)$ has a single solution, which is $3$. And equation $(2)$ also has a single solution, which is $2$. So, you can apply the chinese remainder theorem here and obtain that the answer is: $x\equiv23\pmod{35}$.