Exercise 368Number theory › Divisibility and gcdHigh schoolAdded 2 Nov 2026
$n^2-1$ is divisible by 8 for odd $n$
#divisibility#parity#consecutive integers
Statement
Show that if is an odd integer, then .
Hint
Factor and observe that and are consecutive even integers.
Show solutionHide solution
Solution
Factorization. .
Parity argument. Since is odd, both and are even. They are consecutive even integers, so one of them is divisible by and the other by . Hence their product is divisible by .
More formally, there exists such that . Among and , one is even, so . Together with the factor from each, we get .
Remark. This is a classical parity result.