[Update: the equation was originally $\,y^{x^2}\equiv a\,$ but was changed to $\,y\cdot x^2\equiv a\,$ --Bill]
How do I solve for the answers of an equation of the following form, i haven't seen one in this form in my searches:
$$-352157 * (x^2) = 1 \mod 1022117$$
https://www.dcode.fr/modular-equation-solver#q2 lists the answers for $x$ as:
$$(118188, 461248, 5600869, 903929)$$
Whenever I solve equations of this form, I get four answers, and am looking for guidance on how to solve these. Is this an application of the Tonelli-Shanks algorithm that works here? Especially of interest to me are the two center numbers. The last answer seems to be just $1022117 - 118188$ which equals $903929$. Any help would be appreciated.