Challenge 11: Sequence of Primes

AI Thread Summary
The discussion focuses on proving that for the sequence defined by a1 = p (a prime number) and an+1 = 2an + 1, there is no prime p for which every term an remains prime. It is established through induction that a_n can be expressed as 2^(n-1)(p + 1) - 1, and by applying Euler's theorem, it is shown that a_p is divisible by p, thus not prime. The exception for p = 2 is noted, but even in that case, a_6 is composite. Participants also explore how often the sequences yield prime numbers until the pth term, providing examples of sequences that are prime up to certain terms. The conversation highlights the complexity of prime sequences and invites further exploration of their properties.
Office_Shredder
Staff Emeritus
Science Advisor
Gold Member
Messages
5,702
Reaction score
1,587
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, a_n = 2^{n-1}(p+1) - 1. By Euler's theorem 2^{p-1} \equiv 1 \mod p, and so a_p = 2^{p-1}(p+1) - 1 \equiv p+1 - 1 \equiv 0 \mod p, so p \vert a_p, but p \neq a_p, so a_p 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 a_6 = 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.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top