How do you solve $x*x = 1009732533765288 \mod 1009732533765289$? Wolframalpha when you plug that in has the answers as:
$x \equiv 389427288088687 \mod 1009732533765289$
and
$x \equiv 620305245676602 \mod 1009732533765289$
both of $389427288088687 + 620305245676602 = 1009732533765289$. I'm wondering how it solves these so I can write a program to solve these types of equations. Thanks.