Fibonacci Spiral

Visualizing the Golden Ratio

Product: 30
Fib Max: --

Fibonacci Numbers and the Factors of N

Every prime p divides some Fibonacci number. The first one it divides sits at a position α(p) that always divides p − 1 or p + 1 (which one depends on p mod 5). So gcd(Fk, N) can expose a factor of N without knowing it in advance — for 1081 = 23 × 47, the 16th Fibonacci number 987 already contains 47.

Where each prime factor first appears

gcd(Fk, N) for k = 1, 2, 3…

The smooth-index method

Instead of walking k = 1, 2, 3…, jump straight to an index M built from every small prime power. If α(p) is made only of prime powers up to B, it divides M, and one gcd reveals p. This is a Fibonacci form of Williams’ p+1 and Pollard’s p−1 methods.