 
 
 
 
 
   
 Given
 Given 
 
If you know 
 then it is easy to factor
 then it is easy to factor  :
: 
Suppose  .  Given
.  Given 
 , it is very easy to
compute
, it is very easy to
compute  and
 and  .  We have
.  We have 
 
 and
 and 
 .
Thus we know the polynomial
.
Thus we know the polynomial 
 
 and
 and  .
These roots can be found using the quadratic formula.
.
These roots can be found using the quadratic formula.
? n=nextprime(random(10^10))*nextprime(random(10^10)); ? phin=eulerphi(n); ? f = x^2 - (n+1-phin)*x + n %6 = x^2 - 12422732288*x + 31615577110997599711 ? polroots(f) %7 = [3572144239, 8850588049] ? n %8 = 31615577110997599711 ? 3572144239*8850588049 %9 = 31615577110997599711