1. Home
  2. Explore
  3. Mathematics
  4. Prime Generating Recurrence

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Prime Generating Recurrence

  • 26Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Sequence Basics

What is the recurrence defining the sequence R(n)R(n)R(n)?

26 questions

  1. 1

    What is the recurrence defining the sequence R(n)R(n)R(n)?

    1. A

      R(n)=R(n−1)+gcd⁡(n,R(n−1))R(n) = R(n-1) + \gcd(n, R(n-1))R(n)=R(n−1)+gcd(n,R(n−1))

    2. B

      R(n)=R(n−1)+R(n−2)R(n) = R(n-1) + R(n-2)R(n)=R(n−1)+R(n−2)

    3. C

      R(n)=R(n−1)+gcd⁡(n,n−1)R(n) = R(n-1) + \gcd(n, n-1)R(n)=R(n−1)+gcd(n,n−1)

    4. D

      R(n)=R(n−1)+nR(n) = R(n-1) + nR(n)=R(n−1)+n

    Correct answer
    A

    R(n)=R(n−1)+gcd⁡(n,R(n−1))R(n) = R(n-1) + \gcd(n, R(n-1))R(n)=R(n−1)+gcd(n,R(n−1))

    Explanation

    The sequence is defined by R(n)=R(n−1)+gcd⁡(n,R(n−1))R(n) = R(n-1) + \gcd(n, R(n-1))R(n)=R(n−1)+gcd(n,R(n−1)). Unlike the Fibonacci recurrence, it depends on only one previous term and adds a gcd.

  2. 2

    How many initial terms are needed to define the sequence R(n)R(n)R(n)?

    1. A

      Two

    2. B

      Three

    3. C

      None, it is self-starting

    4. D

      One

    Correct answer
    D

    One

    Explanation

    The recurrence R(n)=R(n−1)+gcd⁡(n,R(n−1))R(n) = R(n-1) + \gcd(n, R(n-1))R(n)=R(n−1)+gcd(n,R(n−1)) requires only one initial term, R(1)R(1)R(1), because each term depends on only the previous term and the index.

  3. 3

    With initial term R(1)=7R(1)=7R(1)=7, what is the first nontrivial gcd (greater than 1) that appears?

    1. A

      gcd⁡(4,9)=1\gcd(4,9)=1gcd(4,9)=1

    2. B

      gcd⁡(2,7)=1\gcd(2,7)=1gcd(2,7)=1

    3. C

      gcd⁡(5,10)=5\gcd(5,10)=5gcd(5,10)=5

    4. D

      gcd⁡(6,15)=3\gcd(6,15)=3gcd(6,15)=3

    Correct answer
    C

    gcd⁡(5,10)=5\gcd(5,10)=5gcd(5,10)=5

    Explanation

    The first nontrivial gcd occurs at n=5n=5n=5, where gcd⁡(5,R(4))=gcd⁡(5,10)=5\gcd(5, R(4)) = \gcd(5,10) = 5gcd(5,R(4))=gcd(5,10)=5. The previous gcds were all 1.

  4. 4

    What is the value of R(3)R(3)R(3) when R(1)=7R(1)=7R(1)=7?

    1. A

      8

    2. B

      9

    3. C

      15

    4. D

      10

    Correct answer
    B

    9

    Explanation

    Using the recurrence: R(2)=7+gcd⁡(2,7)=8R(2)=7+\gcd(2,7)=8R(2)=7+gcd(2,7)=8, R(3)=8+gcd⁡(3,8)=8+1=9R(3)=8+\gcd(3,8)=8+1=9R(3)=8+gcd(3,8)=8+1=9.

  5. 5

    What distinguishes the recurrence R(n)R(n)R(n) from the Fibonacci recurrence?

    1. A

      It has no closed form

    2. B

      It always generates primes

    3. C

      It requires two initial terms

    4. D

      It depends on only one previous term and adds a gcd, not the previous term

    Correct answer
    D

    It depends on only one previous term and adds a gcd, not the previous term

    Explanation

    The Fibonacci recurrence F(n)=F(n−1)+F(n−2)F(n)=F(n-1)+F(n-2)F(n)=F(n−1)+F(n−2) depends on two previous terms, while R(n)=R(n−1)+gcd⁡(n,R(n−1))R(n)=R(n-1)+\gcd(n,R(n-1))R(n)=R(n−1)+gcd(n,R(n−1)) depends on only one and adds a gcd instead of the previous term.

  6. 6

    What do all nontrivial gcds (those greater than 1) in the sequence R(n)R(n)R(n) turn out to be?

    1. A

      Composite numbers

    2. B

      Primes

    3. C

      Odd numbers

    4. D

      Powers of 2

    Correct answer
    B

    Primes

    Explanation

    Empirically and later proven, every gcd greater than 1 in the sequence is prime.

  7. 7

    Why was it surprising that the nontrivial gcds are all prime?

    1. A

      Because primes are rare in such sequences

    2. B

      Because the recurrence involves arbitrary numbers

    3. C

      Because gcds are usually composite

    4. D

      Because there is no obvious reason from the definition

    Correct answer
    D

    Because there is no obvious reason from the definition

    Explanation

    The recurrence simply adds a gcd, so it is not obvious why the nontrivial gcds should always be prime; this was a surprising discovery.

  8. 8

    What pattern was observed when the indices where nontrivial gcds occur were plotted on a logarithmic scale?

    1. A

      They form a straight line

    2. B

      They are uniformly distributed

    3. C

      They form clusters with roughly equal spacing on the log scale

    4. D

      They are random

    Correct answer
    C

    They form clusters with roughly equal spacing on the log scale

    Explanation

    On a log plot, the indices cluster, and the vertical distances between cluster averages appear constant, indicating multiplicative spacing (roughly doubling).

  9. 9

    A logarithmic scale is one where the distance between successive what?

    1. A

      Indices is constant

    2. B

      Integers is constant

    3. C

      Primes is constant

    4. D

      Powers of a fixed base is equal

    Correct answer
    D

    Powers of a fixed base is equal

    Explanation

    On a log scale, the physical distance between numbers like 10 and 100 is the same as between 100 and 1000, i.e., equal spacing of logarithms.

  10. 10

    What doubling relation was observed among the primes in the sequence?

    1. A

      Some primes satisfy 2p+12p+12p+1 equals the next prime in the sequence

    2. B

      All primes satisfy 2p−12p-12p−1 equals the next prime

    3. C

      Each prime is double the previous prime plus 1

    4. D

      Primes appear in pairs that differ by 2

    Correct answer
    A

    Some primes satisfy 2p+12p+12p+1 equals the next prime in the sequence

    Explanation

    Examples like 2⋅5+1=112\cdot5+1=112⋅5+1=11, 2⋅11+1=232\cdot11+1=232⋅11+1=23, 2⋅23+1=472\cdot23+1=472⋅23+1=47 show that some primes are related by 2p+12p+12p+1, but this pattern does not hold universally.

  11. 11

    According to the conjecture, if gcd⁡(n,R(n−1))≠1\gcd(n, R(n-1)) \neq 1gcd(n,R(n−1))=1, what is the next nontrivial gcd?

    1. A

      The smallest prime divisor of R(n−1)R(n-1)R(n−1)

    2. B

      The largest prime divisor of 2n−12n-12n−1

    3. C

      The smallest prime divisor of 2n−12n-12n−1

    4. D

      The smallest prime divisor of nnn

    Correct answer
    C

    The smallest prime divisor of 2n−12n-12n−1

    Explanation

    The conjecture states that the next nontrivial gcd equals the smallest prime divisor of 2n−12n-12n−1.

  12. 12

    If the next nontrivial gcd is predicted to be ppp, at what index does it appear?

    1. A

      n+2pn + 2pn+2p

    2. B

      n+p−12n + \frac{p-1}{2}n+2p−1​

    3. C

      n+p+12n + \frac{p+1}{2}n+2p+1​

    4. D

      n+pn + pn+p

    Correct answer
    B

    n+p−12n + \frac{p-1}{2}n+2p−1​

    Explanation

    The conjecture says that the next nontrivial gcd ppp appears at index n+p−12n + \frac{p-1}{2}n+2p−1​.

  13. 13

    What is the 'shortcut' enabled by the conjecture?

    1. A

      It allows computing R(n)R(n)R(n) directly

    2. B

      It predicts all primes in order

    3. C

      It allows direct computation of each prime gcd without computing intermediate 1s

    4. D

      It eliminates the need for the initial term

    Correct answer
    C

    It allows direct computation of each prime gcd without computing intermediate 1s

    Explanation

    The shortcut uses the conjecture to jump from one prime gcd to the next, skipping over all the indices where the gcd is 1.

  14. 14

    What is the 'nice situation' that makes the shortcut work repeatedly?

    1. A

      R(n)=nR(n) = nR(n)=n

    2. B

      R(n)=n+1R(n) = n+1R(n)=n+1

    3. C

      R(n)=2nR(n) = 2nR(n)=2n

    4. D

      R(n)=3nR(n) = 3nR(n)=3n

    Correct answer
    D

    R(n)=3nR(n) = 3nR(n)=3n

    Explanation

    When R(n)=3nR(n) = 3nR(n)=3n, applying the shortcut leads to another index where the same relation holds, allowing iterative jumps.

  15. 15

    When R(n)=3nR(n) = 3nR(n)=3n, what happens after applying the shortcut?

    1. A

      The gcds become all 1

    2. B

      We end up in another state where R(m)=3mR(m) = 3mR(m)=3m for some mmm

    3. C

      The sequence becomes constant

    4. D

      The sequence terminates

    Correct answer
    B

    We end up in another state where R(m)=3mR(m) = 3mR(m)=3m for some mmm

    Explanation

    The shortcut preserves the relation R=3×indexR = 3 \times \text{index}R=3×index, so after each jump, we again have R(m)=3mR(m) = 3mR(m)=3m for the new index mmm.

  16. 16

    What did the theorem prove about the sequence R(n)R(n)R(n)?

    1. A

      It generates all odd numbers

    2. B

      It grows quadratically

    3. C

      It generates primes

    4. D

      It eventually becomes periodic

    Correct answer
    C

    It generates primes

    Explanation

    The theorem confirmed the conjecture: all nontrivial gcds are primes, so the recurrence generates primes.

  17. 17

    Is the recurrence R(n)R(n)R(n) a practical method for discovering large primes?

    1. A

      No, because to use the shortcut one must already know the prime

    2. B

      No, because the recurrence fails for large numbers

    3. C

      Yes, but only for Mersenne primes

    4. D

      Yes, it is faster than other methods

    Correct answer
    A

    No, because to use the shortcut one must already know the prime

    Explanation

    The shortcut requires finding the smallest prime divisor of 2n−12n-12n−1; to find a large prime, one must first know it is prime, which defeats the purpose.

  18. 18

    Why do the primes appear in clusters?

    1. A

      Because the initial term is 7

    2. B

      Because composite 2n−12n-12n−1 gives short runs of 1s, while prime 2n−12n-12n−1 gives long runs, creating gaps

    3. C

      Because primes naturally occur in clusters

    4. D

      Because the recurrence skips primes

    Correct answer
    B

    Because composite 2n−12n-12n−1 gives short runs of 1s, while prime 2n−12n-12n−1 gives long runs, creating gaps

    Explanation

    When 2n−12n-12n−1 is composite, its smallest prime divisor is small, so the number of 1s before the next gcd is short; when prime, the run is long, separating clusters.

  19. 19

    Which prime is conspicuously absent from the sequence of nontrivial gcds?

    1. A

      2

    2. B

      7

    3. C

      3

    4. D

      5

    Correct answer
    A

    2

    Explanation

    The smallest prime divisor of 2n−12n-12n−1 is always odd, so 2 never appears as a gcd.

  20. 20

    What is known about the set of primes generated by R(n)R(n)R(n)?

    1. A

      All primes appear

    2. B

      Only primes of the form 4k+14k+14k+1 appear

    3. C

      Only primes less than 1000 appear

    4. D

      Infinitely many distinct primes appear

    Correct answer
    D

    Infinitely many distinct primes appear

    Explanation

    Chamizo, Raboso, and Ruiz-Cabello proved that infinitely many distinct primes appear, though not all primes are known to appear.

  21. 21

    What happens if the initial term of R(n)R(n)R(n) is set to 1?

    1. A

      The sequence becomes constant

    2. B

      The sequence generates primes immediately

    3. C

      The sequence is identical to starting with 7

    4. D

      The sequence becomes 1,2,3,4,…1,2,3,4,\dots1,2,3,4,… and all gcds are 1

    Correct answer
    D

    The sequence becomes 1,2,3,4,…1,2,3,4,\dots1,2,3,4,… and all gcds are 1

    Explanation

    With R(1)=1R(1)=1R(1)=1, R(2)=1+gcd⁡(2,1)=2R(2)=1+\gcd(2,1)=2R(2)=1+gcd(2,1)=2, R(3)=2+gcd⁡(3,2)=3R(3)=2+\gcd(3,2)=3R(3)=2+gcd(3,2)=3, etc., so R(n)=nR(n)=nR(n)=n and gcd⁡(n,n−1)=1\gcd(n,n-1)=1gcd(n,n−1)=1 always.

  22. 22

    If the initial term is 4, what eventually happens to the sequence R(n)R(n)R(n)?

    1. A

      It becomes constant

    2. B

      It generates only even numbers

    3. C

      It matches the sequence starting with 7 from n=3n=3n=3 onward

    4. D

      It remains different forever

    Correct answer
    C

    It matches the sequence starting with 7 from n=3n=3n=3 onward

    Explanation

    Starting with 4 gives R(2)=6R(2)=6R(2)=6, R(3)=9R(3)=9R(3)=9, and from that point it coincides with the sequence starting with 7.

  23. 23

    What is the lcm variant C(n)C(n)C(n) defined as?

    1. A

      C(n)=C(n−1)+nC(n) = C(n-1) + nC(n)=C(n−1)+n

    2. B

      C(n)=C(n−1)+lcm⁡(n,n−1)C(n) = C(n-1) + \operatorname{lcm}(n, n-1)C(n)=C(n−1)+lcm(n,n−1)

    3. C

      C(n)=C(n−1)+lcm⁡(n,C(n−1))C(n) = C(n-1) + \operatorname{lcm}(n, C(n-1))C(n)=C(n−1)+lcm(n,C(n−1))

    4. D

      C(n)=C(n−1)+gcd⁡(n,C(n−1))C(n) = C(n-1) + \gcd(n, C(n-1))C(n)=C(n−1)+gcd(n,C(n−1))

    Correct answer
    C

    C(n)=C(n−1)+lcm⁡(n,C(n−1))C(n) = C(n-1) + \operatorname{lcm}(n, C(n-1))C(n)=C(n−1)+lcm(n,C(n−1))

    Explanation

    The variant replaces gcd with lcm: C(n)=C(n−1)+lcm⁡(n,C(n−1))C(n)=C(n-1)+\operatorname{lcm}(n,C(n-1))C(n)=C(n−1)+lcm(n,C(n−1)), typically with C(1)=1C(1)=1C(1)=1.

  24. 24

    In the lcm variant C(n)C(n)C(n), what is observed about (C(n)/C(n−1))−1(C(n)/C(n-1))-1(C(n)/C(n−1))−1?

    1. A

      It is always prime or 1

    2. B

      It is always prime

    3. C

      It is always even

    4. D

      It is always composite

    Correct answer
    A

    It is always prime or 1

    Explanation

    Empirically, the value (C(n)/C(n−1))−1(C(n)/C(n-1))-1(C(n)/C(n−1))−1 appears to be either 1 or prime, but this has not been proven.

  25. 25

    What is the status of the conjecture about the lcm variant?

    1. A

      It has been proven true

    2. B

      It is known to be true for all nnn up to 10610^6106

    3. C

      It has been proven false

    4. D

      It is an open problem; no proof or counterexample known

    Correct answer
    D

    It is an open problem; no proof or counterexample known

    Explanation

    No one has proved or disproved the pattern; Ruiz-Cabello linked it to a difficult open question about primes in arithmetic progressions.

  26. 26

    What did Ruiz-Cabello show about the lcm variant in 2015?

    1. A

      It is related to an open question about primes in arithmetic progressions

    2. B

      He proved the pattern holds for all nnn

    3. C

      He found a counterexample

    4. D

      He proved it generates only primes

    Correct answer
    A

    It is related to an open question about primes in arithmetic progressions

    Explanation

    Ruiz-Cabello showed that proving the pattern would imply a result about primes in arithmetic progressions, a known difficult problem.

Question 1 of 26
Question 1 of 26

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent