I've been hitting myself in the head trying to figure this problem out, but no luck so far. Let $N$ be an integer that equals the product of two odd primes, and $\gcd(a, N) = 1$ (i'll specify $a$ in a bit). Suppose I knew how to find all four solutions to $x^2 \equiv a \mod N$ for some $a$. How can I factor $N$ with this assumption?
This is the second part of a homework question, but I asked about a homework question (1st part) earlier today (maybe it'll help with this problem)
Perfect square modulo $n = pq$
So far, i've been trying different examples, but I haven't seen a consistent pattern. What I do see is that the four solutions have to do with the factors of $N$, where in some examples I did, subtracting two solutions gave me a factor of $N$.
One example I did:
Primes: 3 and 5
The problem: $x^2 \equiv a \mod N$
The only possible $a$ values with solutions are $1$ and $4$ mod 15.
When $a = 1$, I found that my solutions are 1, 4, 11, 14 mod 15.
When $a = 4$, my solutions are $2, 7, 8, 13$.
I did it for other 2 distinct odd primes, but they did not provide me with an insight.
Thanks.