thanks dragonfall, i looked up the euler's theorem but i don't see how to apply it to my problem. could you please elaborate how? thanks!
#6
Dragonfall
1,023
5
I'm sorry, I think I'm mistaken with Euler's theorem.
If a\equiv b^n (\mod n^2) then |a-kn^2|=b^n for some k which can be computed easily. Then you can use an n-th root extraction algorithm, without modular arithmetic.
But then I'm not using the fact that the factors of n are known, so maybe this isn't a good solution. Maybe I missed something.
#7
Dragonfall
1,023
5
What I said above is an exponential algorithm, so please ignore it.
#8
bpet
531
7
Is there necessarily a unique solution, e.g. 0^6 = 6^6 mod 36