Prime and 24

The square of any prime number greater than 3 has an intriguing property: it is always one more than a multiple of 24. This characteristic can be a handy tool for preliminary checks when identifying prime numbers, although additional verification is still required.

Exploring the Pattern with Examples


Back

To illustrate, consider the square of each prime number greater than 3, subtract 1 from it, and divide the result by 24:

Prime Number (a)(b=a21)( b = a^2 - 1 )b24\frac {b} {24}
5241
7482
111205
131687
1728812

Although this pattern can suggest primality, it is not definitive. For example, numbers like 25, 35, and 49 also fit this pattern, yet they are not primes.

Why the Pattern Exists


Back

To understand why this pattern holds, we can apply a bit of number theory using base 12. Any integer can be expressed in the form 12n+k12n + k where kk ranges from 0 to 11.

When we square 12n+k12n + k and subtract 1, the expression simplifies as follows:

(12n+k)21=144n2+24kn+k21=24n(6n+k)+(k21)\begin{split} (12n+k)^2 - 1 & = 144n^2 + 24kn + k^2 - 1 \\ & = 24n(6n + k) + (k^2 - 1) \end{split}

This expression is clearly divisible by 24, except for the term k21k^2 - 1, which requires specific conditions for divisibility by 24. Only certain values of kk associated with primes will satisfy this.

Validating the Values of kk


Back

When investigating which values of kk may lead to prime numbers, most are disqualified by divisibility rules:

ExpressionDivisibility
12n+012n + 0Divisible by 12
12n+112n + 1Potential prime
12n+212n + 2Divisible by 2
12n+312n + 3Divisible by 3
12n+412n + 4Divisible by 4
12n+512n + 5Potential prime
12n+612n + 6Divisible by 6
12n+712n + 7Potential prime
12n+812n + 8Divisible by 4
12n+912n + 9Divisible by 3
12n+1012n + 10Divisible by 2
12n+1112n + 11Potential prime

Testing the viable values of k yields:

kkk21k^2 - 1
10
524
748
11120

Interestingly, 5, 7, 11 are indeed prime numbers, confirming the pattern.