Qm

Why one less than a prime's square is always a multiple of 24

Try it: 5 squared minus 1 = 24; 7 squared minus 1 = 48; 11 squared minus 1 = 120; 13 squared minus 1 = 168. All multiples of 24.

Prove that for every prime p greater than 3, p squared minus 1 is divisible by 24. Does the proof actually need p to be prime?

Show a hint

Factor p squared minus 1 as (p minus 1)(p plus 1). These are the two numbers on either side of p. What can you say about their divisibility by 2 and by 3?

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

A quick test for divisibility by 7A hundred animals for a hundred poundsThe last digit of seven to the seven to the sevenThe last two digits of seven to the power 2024Can the average of two consecutive primes be prime?
All questions →