I reading the following problem:
Let $a$ and $b$ be coprime integers, both $>1$. Prove that there exists an integer $x$ s.t. $1 \le x \le ab - 1, x \equiv 1 \pmod a$, and $x \equiv -1 \pmod b$. Show that $x^2 \equiv 1 \pmod {ab}$ and $x \not \equiv \pm 1 \pmod {ab}$
To be honest I am not really sure what the question is asking.
My approach so far:
$ab$ is obviously not a prime since it has the factors $a$ and $b$. Since $ab$ is not a prime then the roots of one property does not hold hence there is an $x$ s.t. $x^2 \pmod {ab} \space \And x \not \equiv \pm 1 \pmod {ab}$
This means that we have $x$ that is of the form $x - r = n(ab)$ and $r \not \equiv 0 $
So we would have $(x - r)(x -r) = n(ab)$
Then I am stuck.
Using an example such as $a = 2$ and $b = 5$ I can see that for $x = 9$ we have all the conditions requested satisfied and that $(4(2) + 1)(2(5) - 1) = 8(2\cdot 5) + 1 \equiv1 \pmod {10} $
but I am not sure how I can generalize this. I am also not sure how can I jump between the different modulo