Factoring large N into prime factors

AI Thread Summary
The discussion centers on a project involving an algorithm for factoring large numbers, specifically seeking to recover unknown prime factors p and q from a given N and its derived value (p-1)(q-1). The method described involves analyzing sequences of powers of x mod N to determine divisors of (p-1)(q-1), which can predict its value with high probability. Participants express interest in the complexity of finding phi(n) for large semiprimes and request comments on the method used. The original poster seeks the specific theorem related to their approach, acknowledging it may be linked to Euler's work but needing clarification for proper referencing. The conversation highlights the challenges of prime factorization and the mathematical principles involved.
bert2612
Messages
4
Reaction score
0
Hi, I am writing up a project based on an algorithm for factoring large numbers, I have reached seemingly simple point where I am stuck, I wonder if anyone can help me?

I am trying to factor a large N such that N=pq for unknown primes p and q, I have described a method to find a value for (p-1)(q-1) from N and now have the problem of recovering p and q.

So N is given and (p-1)(q-1) is given, how do I carry on? Thanks
 
Mathematics news on Phys.org
thanks, that's perfect.

The way in which i found (p-1)(q-1) is to take a set of sequences of powers of x mod N for x=1,2,...,N-1 and work out their periods, each period turns out to be a divisor of (p-1)(q-1), if a large enough number of divisors is taken, then the value of (p-1)(q-1) can be predicted with high probability. That's basically all I've got, if anyone knows the specific theorem I am exploiting here it would be greatly appreciated as I should include it in my work, I know it's Euler but I'm having trouble finding a specific name so I can reference it and perhaps find a proof.
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Back
Top