Mathematicians Shocked to Find Pattern in ‘Random’ Prime Numbers

Mathematicians are stunned by the discovery thatĀ prime numbersĀ are pickier than previously thought. The find suggests number theorists need to be a little more careful when exploring the vast infinity of primes.

Primes, the numbers divisible only by themselves and 1, are the building blocks from which the rest of the number line is constructed, as all other numbers are created by multiplying primes together. That makes deciphering their mysteries key to understanding the fundamentals of arithmetic.

Although whether a number is prime or not is pre-determined, mathematicians donā€™t have a way to predict which numbers are prime, and so tend to treat them as if they occur randomly. NowĀ Kannan SoundararajanĀ andĀ Robert Lemke OliverĀ of Stanford University in California have discovered that isnā€™t quite right.

ā€œIt was very weird,ā€ says Soundararajan. ā€œItā€™s like some painting you are very familiar with, and then suddenly you realise there is a figure in the painting youā€™ve never seen before.ā€

Surprising order

So just what has got mathematicians spooked? Apart from 2 and 5, all prime numbers end in 1, 3, 7 or 9 ā€“ they have to, else they would be divisible by 2 or 5 ā€“ and each of the four endings is equally likely. But while searching through the primes, the pair noticed that primes ending in 1 were less likely to be followed by another prime ending in 1. That shouldnā€™t happen if the primes were truly random ā€“ consecutive primes shouldnā€™t care about their neighbourā€™s digits.

ā€œIn ignorance, we thought things would be roughly equal,ā€ saysĀ Andrew GranvilleĀ of the University of Montreal, Canada. ā€œOne certainly believed that in a question like this we had a very strong understanding of what was going on.ā€

The pair found that in the first hundred million primes, a prime ending in 1 is followed by another ending in 1 just 18.5 per cent of the time. If the primes were distributed randomly, youā€™d expect to see two 1s next to each other 25 per cent of the time. Primes ending in 3 and 7 take up the slack, each following a 1 in 30 per cent of primes, while a 9 follows a 1 in around 22 per cent of occurrences.

Similar patterns showed up for the other combinations of endings, all deviating from the expected random values. The pair also found them in other bases, where numbers are counted in units other than 10s. That means the patterns arenā€™t a result of our base-10 numbering system, but something inherent to the primes themselves. The patterns become more in line with randomness as you count higher ā€“ the pair have checked up to a few trillion ā€“ but still persists.

ā€œI was very surprised,ā€ saysĀ James MaynardĀ of the University of Oxford, UK, who on hearing of the work immediately performed his own calculations to check the pattern was there. ā€œI somehow needed to see it for myself to really believe it.ā€

Stretching to infinity

Thankfully, Soundararajan and Lemke Oliver think they have an explanation. Much of the modern research into primes is underpinnedĀ G H Hardy and John Littlewood, two mathematicians who worked together at the University of Cambridge in the early 20thĀ century. They came up with a way to estimate how often pairs, triples and larger grouping of primes will appear, known as theĀ k-tuple conjecture.

Just as Einsteinā€™sĀ theory of relativityĀ is an advance on Newtonā€™s theory of gravity, the Hardy-Littlewood conjecture is essentially a more complicated version of the assumption that primes are random ā€“ and this latest find demonstrates how the two assumptions differ. ā€œMathematicians go around assuming primes are random, and 99 per cent of the time this is correct, but you need to remember the 1 per cent of the time it isnā€™t,ā€ says Maynard.

The pair used Hardy and Littlewoodā€™s work to show that the groupings given by the conjecture are responsible for introducing this last-digit pattern, as they place restrictions on where the last digit of each prime can fall. Whatā€™s more, as the primes stretch to infinity, they do eventually shake off the pattern and give the random distribution mathematicians are used to expecting.

ā€œOur initial thought was if there was an explanation to be found, we have to find it using theĀ k-tuple conjecture,ā€ says Soundararajan. ā€œWe felt that we would be able to understand it, but it was a real puzzle to figure out.ā€

TheĀ k-tuple conjecture is yet to be proven, but mathematicians strongly suspect it is correct because it is so useful in predicting the behaviour of the primes. ā€œIt is the most accurate conjecture we have, it passes every single test with flying colours,ā€ says Maynard. ā€œIf anything I view this result as even more confirmation of theĀ k-tuple conjecture.ā€

Although the new result wonā€™t have any immediate applications to long-standing problems about primes like theĀ twin-prime conjectureĀ or theĀ Riemann hypothesis, it has given the field a bit of a shake-up. ā€œIt gives us more of an understanding, every little bit helps,ā€ says Granville. ā€œIf what you take for granted is wrong, that makes you rethink some other things you know.ā€

For more such insights, log into www.international-maths-challenge.com.

*Credit for article given to Jacob Aron*