Saturday, 19 December 2020

Primes Are Rather Elusive

If we listed all the counting numbers 1,2,3,4,5,, excluded 1, and then crossed out all the multiples of 2,3,4, we’d be left with the primes. This sieving process emphasises that primes are defined more by what they are not, than by what they are.

If there was a simple pattern in the primes, we’d be able to encode it into a simple formula for generating them. For example, the triangle numbers 1,3,6,10,15, can be generated by the simple expression 12n(n+1). The prime numbers, however, have resisted attempts by mathematicians over hundreds of years to find precise and simple patterns in them.

One of the first questions anyone enthusiastic about prime numbers asks is whether a polynomial can generate the nth prime. Polynomials are both simple and rather flexible, and it would be quite pleasing if one could generate primes.

Let’s prove that prime numbers are so elusive that no simple polynomial in n can generate the nth prime.



slides: [pdf]

video: [youtube]


No Simple Polynomial Generates Only Primes

polynomial in n has the following general form, simple yet flexible.

P(n)=a+bn+cn2+dn3++αnβ

By simple polynomial we mean the coefficients a,b,cα are whole numbers. Let’s also  say that b,c,d,α are not all zero. This way we exclude trivial polynomials like P(n)=7 that only generate a single value no matter what n is.

Let’s start our proof by assuming there is indeed a P(n) that generates only primes, given a counting number n. When n=1, it generates a prime, which we can call p1.

p1=P(1)=a+b+c+d++α

Now let’s try n=(1+p1).

P(1+p1)=a+b(1+p1)+c(1+p1)2+d(1+p1)3+

That looks complicated, but all we need to notice is that if we expand out all the terms, we’ll have two kinds, those with p1 as a factor, and those without. We can collect together all those terms with factor p1 and call them p1X.

P(1+p1)=(a+b+c+d+e+α)+p1·X

We then notice that (a+b+c+d+e+α) is actually p1.

P(1+p1)=p1+p1X=p1(1+X)

Since X is a whole number, this is divisible by p1. It shouldn’t be because P(1+p1) is supposed to be a prime. This contradiction means the starting assumption that there is a polynomial P(n) that generates only primes is wrong.

We’ve actually proved a stronger statement than we intended. We intended to prove that there is no polynomial P(n) that generates the nth prime. We ended up proving that no simple polynomial P(n) can generate only primes.


Polynomials With Rational Coefficients

Insisting on integer coefficients for polynomials might seem overly restrictive. Let's broaden our definition to allow rational coefficients of the form st where s and t are integers. 

We again assume P(n) does indeed generate only primes, and so p1=P(1) is prime. This time we'll consider n=(1+kp1).

P(1+kp1)=a+b(1+kp1)+c(1+kp1)2+=p1+kp1X=p1(1+kX)

Here X contains terms that are combinations of the rational coefficients a,b,cα multiplied together. We can choose a k which cancels all the denominators of the rational coefficients leaving kX as an integer. The lowest common multiple of all the denominators is one way to do this.

Our proof by contradiction then continues as before because we've found an example of P(n) that is not prime.

The primes really are rather elusive if even polynomials with rational coefficients can't generate only primes.

No comments:

Post a Comment