Back

One Less Than a Prime Squared

Easy
Created: November 2, 2025

Show that p2−1p^2-1p2−1 is always a multiple of 24 if ppp is a prime that is bigger than 3.

Solution

Notice that p2−1=(p−1)(p+1)p^2-1 = (p-1)(p+1)p2−1=(p−1)(p+1). Since ppp is bigger than 3, ppp must be odd, so p−1p-1p−1 and p+1p+1p+1 must be even numbers. Since p−1p-1p−1 and p+1p+1p+1 are consecutive even numbers, one of them is divisible by 4. From this, we can conclude that p2−1p^2-1p2−1 is divisible by 2⋅4=82 \cdot 4 = 82⋅4=8.

Let’s consider the numbers p−1p-1p−1, ppp, and p+1p+1p+1. Since they are 3 consecutive numbers, one of them must be a multiple of 3. Since ppp is a prime that is greater than 3, the multiple of 3 must be either p−1p-1p−1 or p+1p+1p+1. This means that p2−1p^2-1p2−1 is also divisible by 3.

Since 8 and 3 share no factors in common, p2−1p^2-1p2−1 must be divisible by 8⋅3=248 \cdot 3 = 248⋅3=24.

Try These Next