← All 70 questions
Question 23·Churchill College·2025·Standard first-round proof - two lines once the constant is split, so it discriminates on whether the factor of 8 is earned rather than assumed, whether the two divisibilities are glued by coprimality, and whether you can say why 24 is exactly the right number instead of merely a right one.
Divisibility by factorisation and modulo: split 24 into the coprime factors 8 and 3, read p2−1 as (p−1)(p+1) over three consecutive integers, and cross-check against the φ(24)=8 unit classes modulo 24.
6–10 minutes at interview pace
Live video, shared whiteboard. Everything under BOARD is written with the pen; everything under SAY is spoken over it, at the same time. Never write a line in silence, and never say a line you have not put on the board.
Prove that for any prime number p>3, the number p2−1 is always divisible by 24.
Answer: 24|p2−1 for every prime p>3, and 24 is best possible since p=5 gives p2−1=24 exactly. The argument needs only gcd⁡(n,6)=1: 24|n2−1⟺gcd⁡(n,6)=1.

The whiteboard, beat by beat

1 · Orient · beat 1 of 7

What the sentence actually claims

Claim: for every prime p>3, \; 24|p2−1
24=23⋅3: two jobs, 8|p2−1 and 3|p2−1
∀p: infinite set, no example list
First contact: p=5→24, p=7→48, p=11→120
What you say, out loud

Before I touch the algebra I want the shape of the statement in front of me: this is a for-all claim over infinitely many primes, so the deliverable is an argument, not a table of checks.

The constant is the first piece of structure. Twenty-four is eight times three, and those two are coprime, so I can prove the two divisibilities separately and multiply them at the end. That turns one unfamiliar statement into two small familiar ones.

I will keep an eye on the smallest cases purely to keep the arithmetic honest: p equals 5 gives 24, p equals 7 gives 48, p equals 11 gives 120, and each is a multiple of 24. Those are signposts, not evidence.

Why this beat exists: Orient by the quantifier first, then split the constant. Naming the coprime split 24 = 8 * 3 at the very start is what makes the rest of the answer short, and it also sets up the sharpness question in beat 5.
2 · Set up the language · beat 2 of 7

Two readings of one expression

Multiplicative: p2−1=(p−1)(p+1)
Consecutive triple: p−1,p,p+1, with p odd and 3∤p
Congruence: the claim is p2≡1(mod24)
p>3 prime ⇒gcd⁡(p,24)=1: p is a unit mod 24
What you say, out loud

There are two languages for this problem and I want both, because they will give me two genuinely different proofs rather than one proof twice.

The first is multiplicative: factor the difference of squares and argue about the two neighbours of p. Everything I need is then about consecutive integers.

The second is modular: the claim is exactly that the square of p is congruent to 1 modulo 24, which is a statement about the residue class of p and about nothing else.

The hypothesis does one job in each language. Multiplicatively it says p is odd and not a multiple of three. Modularly it says p is coprime to 24, so it lives in the unit group - and that is what will license an exhaustive check later.

Why this beat exists: Writing gcd(p,24)=1 down here is not decoration: it is the exact fact that makes the eight-class check in beat 6 exhaustive rather than suggestive.
3 · First decisive move · beat 3 of 7

Split the constant and hand each factor its own job

Job 1: 8|(p−1)(p+1), from two evens 2 apart
Job 2: 3|(p−1)(p+1), from three consecutive integers
Glue: gcd⁡(8,3)=1, so 8|N and 3|N give 24|N
p - 1, p, p + 1 (p odd, 3 not | p)24 = 8 * 3, gcd(8, 3) = 1: prove each halfone is 0 mod 4, the other 2 mod 4both even, and they differ by 2p - 1pp + 1exactly one multiple of 3 - never the middle one8 | (p-1)(p+1)3 | (p-1)(p+1)gcd(8,3)=1 => 24 | p^2 - 1example p = 5: 4, 5, 64 = 0 mod 4, 6 = 2 mod 43 | 6, 24 | 24 = 4 * 6
The two neighbours of an odd prime. p-1 and p+1 are consecutive even numbers, so exactly one of them is a multiple of 4 and their product is a multiple of 8; of the three consecutive integers p-1, p, p+1 exactly one is a multiple of 3, and because p > 3 is prime it is never the middle one. Since 8 and 3 are coprime, 24 divides (p-1)(p+1) = p^2 - 1. The example row is p = 5, where the product is 4 * 6 = 24.
What you say, out loud

The decisive move is to stop looking at 24 and look at 8 and 3 separately, because each of them sees exactly one feature of the picture in front of me.

For the eight: p is odd, so p minus 1 and p plus 1 are both even, and two even numbers that differ by two cannot both be only singly even. One of them is a multiple of four and the other is just twice an odd number, so the product carries at least three factors of 2.

For the three: any three consecutive integers contain exactly one multiple of three. Since p is prime and bigger than three, that multiple cannot be p itself, so it has to be one of the two neighbours.

Both conclusions are about the same two factors, and coprimality is what lets me combine them. That is the whole proof in one breath - now I will write it out properly.

Why this beat exists: This is the beat where the diagram earns its place: the number line shows the parity split and the multiple of three at the same time, which is precisely the pair of lemmas the argument needs. Draw it before writing either divisibility.
4 · Execute · beat 4 of 7

The 8, then the 3, then the glue

p=2k+1, u=k: (p−1)(p+1)=2u⋅2(u+1)=4u(u+1)
u(u+1) even ⇒ 4u(u+1) is a multiple of 8
mod 3: class 0 excluded, p≡±1, p2≡1
8|N,3|N,gcd⁡(8,3)=1⇒24|N,N=p2−1
What you say, out loud

Writing p as 2k plus 1 makes the parity bookkeeping impossible to hand-wave. The neighbours are 2u and 2 times the quantity u plus one, so their product is 4 times u times the quantity u plus one; and u and u plus one are consecutive, so that product is even. That evenness supplies the third factor of 2, and it is the entire content of the eight.

Modulo three there are only two legal classes for p, plus one and minus one, and both of them square to 1. So p squared minus 1 is divisible by 3.

For the glue I use the standard fact that if two coprime numbers each divide N, their product divides N. Eight and three are coprime, so 24 divides p squared minus 1. That closes the first route, and nowhere in it did I use anything special about primes beyond odd and not divisible by three.

Why this beat exists: The step from 4u(u+1) to a multiple of 8 is the one candidates skip and examiners mark for. Say out loud why u(u+1) is even, and say which two properties of p are actually being used.
5 · Pin the exact value · beat 5 of 7

Is 24 the right number, or only a number that works?

p=5: p2−1=24=23⋅3 exactly - the bound is attained
universal divisor must divide this 24
gcd⁡{p2−1:5≤p≤1000,p prime}=24
v2(p2−1)≥3 always, =3 for p≡3,5,11,13(mod16)
v3(p2−1)≥1 always, and 9∤24: so 48, 16, 9 all fail
What you say, out loud

Having proved divisibility I have not yet answered the question a Cambridge interviewer actually asks, which is whether 24 is the real answer or merely something my argument happened to reach.

The case p equals 5 settles the size: there p squared minus 1 is exactly 24, so any divisor that works for all primes must divide 24, and no larger constant can be true.

I can also watch the gcd across a long list. Over the primes from 5 up to 1000 the gcd of p squared minus 1 is 24, and it is already 24 at the very first prime, so adding more primes never strengthens the guarantee.

The finer print goes the same way. The two-adic valuation is at least three but equals three for 86 of those 166 primes, so 16 is not on the table, and the three-adic valuation is at least one but 9 fails at p equals 5. Twenty-four is exactly the guaranteed content, not a rounding of something better.

Why this beat exists: Pinning the constant is a separate task from proving divisibility: one attained example plus an exact gcd turns a bound into an equality. 86 of 166 and the gcd value are computed, not estimated.
6 · Test the claim · beat 6 of 7

The independent route: one table modulo 24

n≡a(mod24)⇒24|n2−a2: the claim is 24-periodic
So 8=φ(24) tests cover everything: 1,5,7,11,13,17,19,23
a2≡1(mod24): all eight, each with primes
Boundary: p=3→8, p=2→3 - and 352−1=1224=24⋅51
the eight unit classes mod 24phi(24) = 8, and p^2 mod 24 sees only p mod 24aa^2a^2 mod 24(a^2 - 1)/241110525117491211121151316917172891121936111523529122outside the table: p = 3 gives 8, p = 2 gives 3
Route B in full. The eight residue classes coprime to 24, with a^2, a^2 mod 24 and the exact quotient (a^2 - 1)/24. Every square is congruent to 1 mod 24, and since n^2 - a^2 is divisible by 24 whenever n is congruent to a mod 24, these eight rows decide the statement for every integer at once. The quotients 0, 1, 2, 5, 7, 12, 15, 22 are exact; the class 1 representative gives 0, and the first prime in it, 73, gives 5328 = 24 * 222. The two primes outside the table, 2 and 3, are exactly where the hypothesis is needed.
What you say, out loud

Now a second route that shares no step with the first: I will not factor anything. Because the predicate only sees p modulo 24, an exhaustive check is genuinely possible, and it is eight rows of arithmetic, all computed directly mod 24.

The bound is honest rather than hopeful. If n is congruent to a modulo 24 then 24 divides n squared minus a squared, so the truth value repeats with period 24; and the other sixteen classes are exactly the ones divisible by 2 or by 3, which no prime bigger than 3 can occupy.

Every one of the eight classes is occupied - the first prime in class 1 is 73, and 73 squared minus 1 is 5328, which is 24 times 222 - so the table is not checking empty boxes.

Then the stress test. Remove the hypothesis and the statement breaks in the smallest possible way: p equals 3 gives 8 and p equals 2 gives 3, neither divisible by 24. But the composite 35 still works, which is a hint that primality was never the engine.

Why this beat exists: Route B is deliberately redundant with route A: same theorem, different arithmetic path, no shared lemma. Both were run over the same 166 primes and agree on every one.
7 · Conclude and generalise · beat 7 of 7

What was actually proved, and how far it reaches

Result: 24|p2−1 (prime p>3), proved twice
Prime was only ever gcd⁡(n,6)=1: 24|n2−1⟺gcd⁡(n,6)=1
checked 1≤n≤200000: both sides, 66667 each
24 = largest such modulus; divisors 1,2,3,4,6,8,12,24
λ(24)=2: exponent of the unit group
What you say, out loud

To close: the claim is proved by two independent routes, and the constant is best possible, because p equals 5 attains it exactly.

The honest generalisation is stronger than the question asked. Nowhere did I use that p has no divisors other than one and itself, only that it is odd and not a multiple of three, so for any integer n, 24 divides n squared minus 1 if and only if n is coprime to six. I checked that equivalence on the whole range up to 200000 and it holds with zero exceptions, 66667 values on each side.

And the reason the question is about squares specifically is that the exponent of the unit group modulo 24 is 2: every unit has order one or two. That is also why 24 is the largest modulus with this property - the moduli in which every unit squares to 1 are exactly the divisors of 24, so 25 and 23 both fail immediately.

What the argument does not generalise to is arbitrary powers: for odd exponents the guaranteed divisor of p to the k minus 1 collapses to 2 - I took that gcd over the same prime list for every odd k from 3 to 15 and it is 2 each time - because the factor of 3 disappears. That is a different invariant, and it is the natural next question.

Why this beat exists: Conclude by naming the gap between what was asked and what was proved: primality is sufficient, not necessary. The two routes, the attained constant and the exact iff statement are three separate claims, and each was checked on its own terms.

Where the interviewer pushes next

“Is the primality of p doing any real work in your proof?”
What you say, out loud

None beyond two consequences. The argument only ever used that p is odd and that p is not a multiple of three, and anything with those two properties works, prime or not.

Composite examples carry it: 35 gives 1224, which is 24 times 51, and 121 gives 14640, which is 24 times 610.

The converse also holds, which is the part worth saying unprompted. If n is even then n squared is 0 or 4 modulo 8, so 8 cannot divide n squared minus 1; if three divides n then n squared minus 1 is minus one modulo 3, so 3 cannot divide it either. Odd multiples of three fail in the same shape: 9 gives 80, 15 gives 224, 21 gives 440, each leaving remainder 8 on division by 24.

proof used: p odd, 3∤p: nothing else
n=35: 352−1=1224=24⋅51; n=121: 14640=24⋅610
n=9: 80, n=15: 224, n=21: 440 - all leave remainder 8
24|n2−1⟺gcd⁡(n,6)=1 (checked for all n≤200000)
“Why split 24 as 8⋅3 rather than 12⋅2 or 6⋅4?”
What you say, out loud

Because the combination step is only legal for coprime divisors. From two divides N and twelve divides N nothing at all follows about twenty-four, and N equals 12 is a counterexample to that inference.

The split is forced by the arithmetic rather than chosen for convenience: the factor of 8 is exactly the content of the parity count on two consecutive even numbers, and the factor of 3 is exactly the content of the triple. Neither piece of information survives inside a factor of 12.

It also explains why 24 is the interesting claim and 12 is a weaker true one. Twelve loses a factor of two, and that factor is precisely the part of the argument that most candidates fail to justify.

The glue needs coprimality: a|N,b|N,gcd⁡(a,b)=1⇒ab|N
gcd⁡(8,3)=1 - valid; gcd⁡(12,2)=2 - N=12 refutes
6⋅4, gcd⁡=2: gives 12|N, never 24
tally: 2 parity, 2 gap, 2 more, 3 triple
“What does the same method give for pk−1, or for higher powers of 2?”
What you say, out loud

For squares the two-adic story is complete and it is a residue-class story: p squared minus 1 is divisible by 8 always, and by 16 exactly when p is congruent to plus or minus 1 or plus or minus 7 modulo 16. The minimum of three is attained, so there is no uniform improvement.

For higher powers the shape changes and the method has to change with it. I took the gcd of p to the k minus 1 over the same 166 primes: every odd exponent from 3 to 15 gives just 2, while k equals 4 gives 48, k equals 6 gives 72, k equals 8 gives 96 and k equals 12 gives 144.

The reason is that for odd k the factor of 3 disappears, since p to the k is congruent to p modulo 3 and p can be minus one there; 5 cubed minus 1 is 124, which is not even divisible by 3. What survives is the order of p modulo each prime power, so the right generalisation is about orders rather than about parity counts.

v2(p2−1)=3 exactly for p≡3,5,11,13(mod16); ≥4 for p≡1,7,9,15
k odd, 3≤k≤15: gcd is always 2
k=4: gcd⁡=48, k=6: gcd⁡=72, k=8: gcd⁡=96, k=12: gcd⁡=144
p3−1=(p−1)(p2+p+1), and 53−1=124=2⋅62

Traps on this question

  • Factoring as (p−1)(p+1) and then saying the two factors are consecutive, so one is a multiple of 3. They differ by 2, not by 1: the consecutive triple is p−1,p,p+1, and the step that rescues the argument is that 3∤p, which is exactly what p>3 prime buys.
  • Stopping at both neighbours are even, so 4|p2−1. Divisibility by 4 is the wrong target: the argument needs 8, and the extra factor of 2 has to come from one of p−1,p+1 being 0(mod4), which is a property of consecutive even numbers and not of parity alone. Skipping it leaves the proof one factor of 2 short, and it is the most common way this answer loses the mark.
  • Checking p=5,7,11, seeing 24,48,120, and announcing a proof. The claim is universal over infinitely many primes. The honest finite check is the φ(24)=8 unit classes modulo 24, justified by the periodicity of n↦n2mod24 - not three examples that happen to work.
  • Combining divisibilities that are not coprime: from 2|N and 12|N nothing follows about 24, and N=12 is a counterexample to the inference. The glue needs gcd⁡(8,3)=1, and it is worth saying that out loud rather than letting the product of the two divisors appear silently.
  • Attributing the result to Fermat's little theorem with modulus 24. Little Fermat is a statement about a prime modulus, and 24 is composite; what is really being used is that every unit modulo 24 has order dividing 2. Citing the wrong theorem also hides the reason the question is about squares, which is the only interesting part of it.

What gets written on the assessor’s form

  • Restated the goal as two separate divisibilities, 8|p2−1 and 3|p2−1, before any algebra, and stated why the split is legitimate (gcd⁡(8,3)=1).
  • Earned the factor of 8 explicitly: wrote p=2k+1, obtained 4u(u+1), and said why u(u+1) is even instead of leaving the fourth power of two implied.
  • Used the hypothesis twice and visibly: p is odd, and 3∤p so the multiple of 3 in the triple is a neighbour of p rather than p itself.
  • Pinned the constant rather than accepting it: observed p=5 gives p2−1=24 exactly, so no larger universal divisor exists, and noted that 16 and 9 both fail.
  • Produced a genuinely independent second route (the 8 unit classes mod 24), named the periodicity that makes it exhaustive, and tested the boundary primes 2 and 3 to show the hypothesis is load-bearing.