Geometry Solver
Home › Counting and number theory

Why is p squared minus one divisible by 24 for primes above 3?

Prove divisibility by coprime factors

To prove an integer is divisible by 24, it is enough to prove divisibility by 8 and by 3 separately, since 8 and 3 are coprime.

Problem

Prove that is divisible by 24 whenever is a prime number greater than 3.

Answer

divides for every prime .
The restriction matters: p=2 and p=3 do not satisfy the claim.

Step-by-step solution

1. Factor the expression

Write . Since is prime, it is odd, so for an integer .

2. Show divisibility by eight

Then . One of two consecutive integers and is even, so this product is a multiple of 8.

3. Show divisibility by three

The prime is not a multiple of 3. It is therefore one less or one more than a multiple of 3, making either or divisible by 3. Thus is divisible by both 3 and 8, hence by 24.

Add to Chrome - solve your own

Screenshot any problem on your screen and get the steps. Chrome on a computer; free.