Suppose we know $p$ and $q$ two prime number, is there a way to find $x$ to satisfy this equation for $x$: given $a$ and $n$ where $n =pq$ find $x$ such that $x^2=a \bmod n$.
Asked
Active
Viewed 73 times
1

emacs drives me nuts
- 10,390
- 2
- 12
- 31
-
2There are some other questions / answers that address this, but none of them are very satisfactory, IMO like https://math.stackexchange.com/a/633174/746312 but maybe it's good enough for you? Basically (assuming $p\neq q$) solve for each prime individually and then use the Chinese Remainder Theorem to combine them. – emacs drives me nuts Sep 08 '22 at 14:24
-
thank you sir for your precious time. – sam oldfield 999 Sep 08 '22 at 14:56
-
1For square roots modulo a (large) prime, there is the Tonelli-Shanks algorithm. – Jaap Scherphuis Sep 08 '22 at 15:21
-
sir, thank you for your precious time I appreciate that. – sam oldfield 999 Sep 14 '22 at 13:46