Back

One Less Than a Prime Squared

Easy
Created: November 2, 2025

Show that p21p^2-1p21 is always a multiple of 24 if ppp is a prime that is bigger than 3.

Solution

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

Let’s consider the numbers p1p-1p1, 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 p1p-1p1 or p+1p+1p+1. This means that p21p^2-1p21 is also divisible by 3.

Since 8 and 3 share no factors in common, p21p^2-1p21 must be divisible by 83=248 \cdot 3 = 2483=24.

Try These Next