Prime Generating Recurrence
- 26Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
How is the sequence R(n) defined?
R(n)=R(n−1)+gcd(n,R(n−1)), with initial term R(1)=7.
Or swipe the card
26 cards
How is the sequence R(n) defined?
R(n)=R(n−1)+gcd(n,R(n−1)), with initial term R(1)=7.
How does the recurrence for R(n) differ from the Fibonacci recurrence?
It requires only one initial term, whereas Fibonacci requires two.
What are the first five terms of R(n) starting with R(1)=7?
R(1)=7, R(2)=8, R(3)=9, R(4)=10, R(5)=15.
What are the first few gcds in the sequence R(n) with R(1)=7?
gcd(2,7)=1, gcd(3,8)=1, gcd(4,9)=1, gcd(5,10)=5, gcd(6,15)=3.
What surprising property do the non-1 gcds in R(n) have?
They are all prime numbers.
What doubling pattern is observed among the prime gcds?
2×5+1=11, 2×11+1=23, 2×23+1=47, but 2×47+1=95 is not prime and does not appear.
What was revealed by plotting the indices where non-1 gcds occur on a logarithmic scale?
The primes appear in clusters, and the spacing between clusters is very even on the log scale.
What does a fixed vertical distance on a logarithmic plot correspond to?
Multiplication by a constant.
What is the approximate ratio of cluster averages in the log plot?
About 2.
How can the first prime in a cluster be predicted from the previous cluster?
It equals 2n−1, where n is the index of the last prime in the previous cluster.
How can every prime gcd (not just the first in a cluster) be predicted?
It is the smallest prime divisor of 2n−1, where n is the current index.
What is the shortcut to skip from one non-1 gcd to the next?
The next non-1 gcd is the smallest prime divisor p of 2n−1, and it appears at index n+(p−1)/2.
What happens when R(n)=3n?
After (p−1)/2 steps, the sequence returns to a state where R(n+i)=3(n+i), allowing the shortcut to repeat.
Is the conjecture that the recurrence generates primes proven?
Yes, it is a theorem.
Is this recurrence a practical method for discovering large primes?
No, because it requires either many steps (about (p−1)/2 steps per prime) or an independent primality test to use the shortcut.
Why do primes appear in clusters?
When 2n−1 is prime, the run of 1s is long (n−1 steps), starting a new cluster. When 2n−1 is composite, its small prime divisor leads to short runs within a cluster.
Why does the prime 2 never appear as a gcd in R(n)?
Because 2n−1 is always odd, so its smallest prime divisor is never 2.
Is it known whether every odd prime appears in the gcd sequence?
No, it is an open question. After 10,000 applications of the shortcut, the smallest odd prime not yet seen is 587.
What pattern is observed for the second prime in each cluster?
It is always 3.
What happens if the initial term R(1) is set to 1?
The sequence becomes s(n)=n (each gcd is 1), so it is boring.
What happens with initial terms 2 or 3?
The sequences are also not interesting (no primes).
What happens when the initial term is 4?
The sequence eventually coincides with the one starting with 7.
What is observed for the initial term 532?
Non-prime gcds occur before eventually reaching the R(n)=3n state at n=279, after which all gcds are primes or 1.
Define the LCM variant C(n).
C(n)=C(n−1)+lcm(n,C(n−1)), with C(1)=1.
What is the observed property of the ratios C(n)/C(n−1)−1?
They are always prime or 1.
Has the LCM variant's property been proven?
No, it remains an open conjecture. Ruiz-Cabello (2015) showed it relates to primes in arithmetic progressions.

Ask anything
We've read this whole study set, so questions about it get the best answers.