Prime Sequences
This group tasks allows you to search for arithmetic progressions in the prime numbers. How many of the challenges will you discover for yourself?
Problem
In 2004 an exciting new result was proved in Number Theory by two young mathematicians Ben Green and Terence Tao. They proved that if you look in a long enough list of the prime numbers then you will be able to find numbers which form an arithmetic progression containing as many numbers as you choose! In this question we explore some of the interesting issues surrounding arithmetic progressions of prime numbers.
An $AP-k$ sequence is $k\geq 3$ primes in arithmetic progression. See examples
This problem involves several linked parts leading up to a final challenge. Try some of the earlier questions to gain insights into the final challenge. These can be attempted in any order. You might find that you naturally ask yourself questions which are found later in the list of questions and you might find that one part helps in the consideration of another part. Of course, you are welcome to go straight to the final challenge. However, you might also wish to start with one of the earlier challenges and see how many of the other challenges you naturally discover whilst exploring the underlying mathematical structure.
| Consider some of these three questions first: | |
| Question A | |
| Question B | |
| Question C | |
| Next consider some of these three questions: | |
| Question A | |
| Question B | |
| Question C | |
| Now consider some of these three questions: | |
| Question A | |
| Question B | |
| Question C | |
When you have thought about some of the previous problems you might like to try the final challenge
In doing these problems you might like to see this list of primes
Getting Started
Think about the remainder when dividing each term by various prime numbers.
We recommend this page for further reading.
Student Solutions
Amy from Birmingham answers the first set of questions.
Can you find an arithmetic progression of four primes?
$5, 11, 17, 23$ is an arithmetic progression starting at $5$ with a difference of $6$.
This can also be extended to a progression of $5$ primes by $5, 11, 17, 23, 29$
How many prime APs beginning with $2$ can you find?
There can't be any prime APs beginning with $2$ because $2$ is the only even prime number. So the arithmetic progression difference can not be an even number. So if you add an odd number on to get to a prime, say add $2k+1$ where $k$ a whole number, so $2+2k+1 = 2k+3$ is a prime number. Then if we add on the common difference again to get $p+2k+1 = 2k+3+2k+1 = 4k+4 = 4(k+1)$ which is an even number and so cannot be a prime number. So APs beginning with $2$ can only have $2$ components, and so are not an AP.
How many other arithmetic progressions of prime numbers from the list of primes below can you find?
We know from above that they must have common differences of even numbers. Eg.
$3, 5, 7$ - difference 2
$3, 7, 11$ - 4
$3, 11, 19$ - 6
$3, 13, 23$ - 10
$3, 17, 31$ - 14
$3, 23, 43$ - 20
$3, 31, 59$ - 28
$3, 37, 71$ - 34
$3, 41, 79$ - 38
and so on. So there are lots and lots.
The only progression with common difference $10$ is $3, 13, 23$ because one of them will always divide by $3$. We know the digits in a number that divides by $3$ will always add up to $3, 6$ or $9$ so if all the digits in a number $p$ add up to $k$ then $p+10$ adds up to $k+1$ and $p+20$ adds up to $k+2$, and one of $k, k+1, k+2$ will always be divisible by $3$ as three consecutive numbers will always have one that divides by $3$.
Good answers Amy, and well done on developing your ideas to show that $3, 13, 23$ is the only prime AP with common difference $10$. Can anyone think of a more concise way of expressing Amy's ideas? Can anyone find any more of the many prime APs?
.
Clark managed to complete the next few using modular arithmetic. If you are unfamiliar with this area of maths you might want to read the article Modular Arithmetic first.
Why is $3, 5, 7$ the only prime AP with common difference 2?
Because one of them will always divide by $3$. A sequence of numbers $p, p+2, p+4$ will always have one number which divides by three. If we use modular arithmetic, and take $p, p+2, p+4$ modulo 3 then we have $3$ options.
| p | p+2 | p+4 |
| 0 | 2 | 1 |
| 1 | 0 | 2 |
| 2 | 1 | 0 |
Where the top row is the number itself, and then each row shows what this would equal if $p=0, 1, 2$ mod $3$. As we can see, there is always a zero in each row, and so in any sequence of $3$ numbers where the difference is $2$, one will always divide by three, and so cannot be prime. So as $3$ itself is the only prime number divisible by $3$, the only AP of difference $2$ must include $3$, and so the only prime AP of common difference $2$ is $3, 5, 7$
What is the maximum length of a prime AP with common difference 6?
Using a similar method to above, we can show that a sequence of $5$ numbers of difference $6$ will always have a member that is divisible by $5$. Looking at a sequence $p, p+6, p+12, p+18, p+24$ and putting into a table as above, so a looking at what each sequence would be equal to modulo $5$ given that $p=0,1,2,3,4$
| p | p+6 | p+12 | p+18 | p+24 |
| 0 | 1 | 2 | 3 | 4 |
| 1 | 2 | 3 | 4 | 0 |
| 2 | 3 | 4 | 0 | 1 |
| 3 | 4 | 0 | 1 | 2 |
| 4 | 0 | 1 | 2 | 3 |
Claim: If the common diference of a prime AP is $N$ then the maximum length of the prime AP is $N-1$
I have noticed a pattern in the examples above, that is the longest sequence involves starting on the prime number that is the length of the sequence. Compiling a similar table, I shall show that the sequence $p, p+N, p+2N, ... , p+(N-3)N, p+(N-2)N$ will always have one component that divides by $N-1$, so if a sequence of this length exists, it must start on the prime $N-1$. This also relies on the sequence $p, p+N, ... , p+(N-2)N$ being all primes, which is unlikely. But supposing this to be true, I shall continue. The table, as above, shows what each of $p, p+N, ... , p+(N-2)N$ would be equal to modulo $N-1$ if $p=0, 1, 2, ... , N-2$
| p | p+N | p+2N | ... | p+(N-3)N | p+(N-2)N |
| 0 | 1 | 2 | ... | N-3 | N-2 |
| 1 | 2 | 3 | ... | N-2 | 0 |
| 2 | 3 | 4 | ... | 0 | 1 |
| ... | ... | ... | ... | ... | ... |
| N-3 | N-2 | 0 | ... | N-5 | N-4 |
| N-2 | 0 | 1 | ... | N-4 | N-3 |
| p | p+10 | p+20 |
| 0 | 1 | 2 |
| 1 | 2 | 0 |
| 2 | 0 | 1 |
| p | p+$10^{n}$ | p+$2\times 10^{n}$ |
| 0 | 1 | 2 |
| 1 | 2 | 0 |
| 2 | 0 | 1 |
| n | n+2p | n+4p |
| 0 | 1 | 2 |
| 1 | 2 | 0 |
| 2 | 0 | 1 |
| n | n+2p | n+4p |
| 0 | 2 | 1 |
| 1 | 0 | 2 |
| 2 | 1 | 0 |
Teachers' Resources
Using NRICH Tasks Richly describes ways in which teachers and learners can work with NRICH tasks in the classroom.
Why do this problem?
Possible approach
Key questions
Possible extension
Possible support