Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Rho factorization method
The Rho factorization method was invented by John Pollard in 1974.
The idea is to create a sequence iterating a polynomial modulo the number to be factored.
So the sequence will be:
and so on.
In general this polynomial is a quadratic
There are
When
We can detect if two elements of the sequence
So what we need is to detect the sequence repetition.
There is a method invented by Floyd that consists in computing
Then we have to compute
Since computing GCD's are expensive, we can trade most of the GCD's by multiplications. For example we can compute in batches of four elements:
and so on.
A method that requires less modular multiplications was invented by Richard Brent in 1980 who used it to factor the eighth Fermat number.
Example
Suppose we want to factor the number 9271 using the polynomial
Step 1:
Step 2:
Step 3:
Step 4:
Batch gcd:
Step 5:
Step 6:
Step 7:
Step 8:
Batch gcd:
So 73 is a proper factor of 9271.