Find b from a=b^x mod x^2 given a,x,p,q

  • Level: Graduate 
  • Thread starter Thread starter vanvincent
  • Start date Start date
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
7 replies · 3K views
vanvincent
Messages
6
Reaction score
0
How to find b from a = b^x mod x^2, where a and x are known? prime factors p and q of x are also known.
 
Last edited:
Physics news on Phys.org
[tex](a)^{\frac{1}{x}}=(b^x)^{\frac{1}{x}}[/tex]
[tex]a^{\frac{1}{x}}=b[/tex]
 
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!
 
I'm sorry, I think I'm mistaken with Euler's theorem.

If [tex]a\equiv b^n (\mod n^2)[/tex] then [tex]|a-kn^2|=b^n[/tex] 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.
 
What I said above is an exponential algorithm, so please ignore it.
 
Is there necessarily a unique solution, e.g. 0^6 = 6^6 mod 36