I want to evaluate $x^2 = a\, mod\, n$ for large modulus. But I need only the first few solutions. How can I get it?
I tried following
Reduce[x^2 == 7946761, x, Modulus -> 130356633908760178920]
I got this output :
ReplaceAll::reps: {
ToRules[SystemException[RootsListSizeExceeded,100000]]}
is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing. >>ReplaceAll::reps:
{x==ToRules[SystemException[RootsListSizeExceeded,100000]]}
is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing. >>
I also tried this
PowerModList[7946761, 1/2, 130356633908760178920]
with the output:
SystemException["PowerModListSizeExceeded", 1048576]
I don't need the complete set of solutions. Just first 10-15 are sufficient. How can I access them? Help please.