I suppose I need to use prime factorization. I want to show $p^2-q^2=24k$ for some integer $k$ . How can I start this proof?
2026-04-02 07:55:20.1775116520
On
Suppose that $p$ ≥ $q$ ≥ $5$ are both prime numbers. Prove that 24 divides ($p^2 − q^2$)
3.1k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
There are 3 best solutions below
4
On
It's well-known fact that every prime number, except for $2$ and $3$ can be written as $6k \pm 1$. SO we have:
$$(6k \pm 1)^2 - (6l \pm 1)^2 = 36k^2 \pm 12k + 1 - 36l^2 \mp 12l - 1$$
$$= 36(k^2-l^2) \pm 12(k - l) = 12(3k^2 - 3l^2 \pm k \mp l)$$
The sum in the parenthesis is always even. Why?
Hence we proved that it's divisible by 24.
Hint: Show $p^2 = 1 \mod 3$ and $p^2 = 1 \mod 8$ for any such $p$.