Challenge 11: Sequence of Primes

Click For Summary

Discussion Overview

The discussion revolves around a sequence defined by a prime number and a recursive formula, specifically exploring whether there exists a prime number \( p \) such that all terms in the sequence are prime. Participants engage in proving or disproving this proposition and discussing specific cases and extensions of the problem.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant proposes the sequence defined as \( a_1 = p \) and \( a_{n+1} = 2a_n + 1 \) and challenges others to prove or disprove the primality of all terms.
  • Another participant presents a proof by induction showing that \( a_n = 2^{n-1}(p+1) - 1 \) and uses Euler's theorem to argue that \( a_p \) is not prime.
  • A subsequent reply notes that the proof does not hold for \( p = 2 \) since Euler's theorem requires \( p \) to be relatively prime to 2, and provides a specific example where \( a_6 = 95 \) is composite.
  • Participants acknowledge the correction regarding \( p = 2 \) and express appreciation for the clarification.
  • Another participant suggests that checking \( p = 2 \) can be simplified by examining the sequence starting from \( a_2 = 5 \) and inquires about alternative methods for solving the problem.
  • A further extension is proposed regarding the frequency of prime terms in the sequence up to the \( p \)th term, providing specific examples of sequences that are prime until certain terms.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the original question of whether there exists a prime \( p \) for which all terms are prime. There are multiple viewpoints and examples discussed, indicating ongoing debate and exploration of the topic.

Contextual Notes

Limitations include the specific conditions under which Euler's theorem applies and the dependence on the definition of primality in the context of the sequence. The discussion also highlights the need for further exploration of cases beyond those presented.

Who May Find This Useful

Readers interested in number theory, mathematical proofs, and the properties of prime numbers may find this discussion relevant and engaging.

Office_Shredder
Staff Emeritus
Science Advisor
Gold Member
Messages
5,706
Reaction score
1,592
Consider the following sequence:
a1 = p, where p is a prime number.
an+1 = 2an+1

Prove there is no value of p for which every an is a prime number, or make me look dumb and construct a counterexample.
 
Mathematics news on Phys.org
First, it follows easily by induction on n that for each n, [itex]a_n = 2^{n-1}(p+1) - 1[/itex]. By Euler's theorem [itex]2^{p-1} \equiv 1 \mod p[/itex], and so [itex]a_p = 2^{p-1}(p+1) - 1 \equiv p+1 - 1 \equiv 0 \mod p[/itex], so [itex]p \vert a_p[/itex], but [itex]p \neq a_p[/itex], so [itex]a_p[/itex] is not prime. Q.E.D.
 
This works except when p = 2 because Euler's Theorem applies only when p is relatively prime with 2. But for that case, I checked and [itex]a_6[/itex] = 95 is composite.
 
Ah yes, good catch. Thanks for patching that hole.
 
You can check p=2 a bit easier because a2 = 5 and you can just apply the odd case starting from there. Nice solution Citan! Are there any other ways of solving it?
 
An extension. How often are the sequences prime until the pth term?
For example 3, 7, 15 is prime until term 3. 5, 11, 23, 47, 95 is prime until the term 5.
But 7 isn't prime until term 7.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 26 ·
Replies
26
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K