Challenge 11: Sequence of Primes

In summary, the conversation discusses a sequence where the first term is a prime number and each subsequent term is defined by a formula. The goal is to prove that there is no value of p for which every term in the sequence is a prime number, with the exception of the case when p=2. Euler's theorem is used to prove this, but it is pointed out that the theorem only applies when p is relatively prime with 2. A counterexample is provided for the case when p=2. The conversation also discusses the frequency at which the sequence is composed of prime numbers until a certain term, with examples given.
  • #1
Office_Shredder
Staff Emeritus
Science Advisor
Gold Member
5,610
1,529
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
  • #2
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.
 
  • #3
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.
 
  • #4
Ah yes, good catch. Thanks for patching that hole.
 
  • #5
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?
 
  • #6
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.
 

1. What is a prime number?

A prime number is a positive integer that is only divisible by 1 and itself. For example, 2, 3, 5, 7, and 11 are all prime numbers.

2. How do you determine if a number is prime?

There are a few different ways to determine if a number is prime. One method is to check if any number between 2 and the square root of the number evenly divides into it. If none of these numbers divide evenly, then the number is prime. Another method is to use the Sieve of Eratosthenes, which is an algorithm for finding all prime numbers up to a given number.

3. What is the sequence of primes?

The sequence of primes is an infinite list of prime numbers, starting with 2, 3, 5, 7, 11, and continuing on without end. This sequence is important in mathematics and has been studied extensively by mathematicians.

4. What is the significance of the sequence of primes?

The sequence of primes has many important applications in mathematics, including in number theory, cryptography, and computer science. It also helps us understand the distribution of prime numbers and their properties.

5. What is the challenge in creating a sequence of primes?

The main challenge in creating a sequence of primes is finding efficient ways to determine if a number is prime. As the numbers get larger, it becomes increasingly difficult to check each possible divisor. Additionally, there are still many unsolved problems and mysteries surrounding the sequence of primes, making it an ongoing challenge for mathematicians to study and understand.

Similar threads

Replies
66
Views
4K
Replies
13
Views
1K
Replies
7
Views
1K
  • General Math
Replies
1
Views
1K
Replies
1
Views
1K
  • General Math
Replies
26
Views
3K
Replies
5
Views
410
  • Precalculus Mathematics Homework Help
Replies
16
Views
2K
  • Precalculus Mathematics Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
Back
Top