Maths WorkshopMaths problems with full solutions
Exercise 1031Logic, sets and proofs › Proof techniquesHigh schoolAdded 3 Nov 2026

Proving an equivalence

#equivalence#iff#proof

Statement

Prove that for any integer nn, n2n^2 is even if and only if nn is even.

Hint

Prove both directions: nn even ⇒\Rightarrow n2n^2 even, and n2n^2 even ⇒\Rightarrow nn even.

Show solutionHide solution

Solution

⇒\Rightarrow (n even implies n2n^2 even). If n=2kn=2k, then n2=4k2=2(2k2)n^2=4k^2=2(2k^2) is even.

⇐\Leftarrow (n² even implies nn even). Contrapositive: if nn is odd, then n=2k+1n=2k+1 and n2=4k2+4k+1=2(2k2+2k)+1n^2=4k^2+4k+1=2(2k^2+2k)+1 is odd. So n2n^2 even implies nn not odd, i.e. nn even.

Conclusion. n2n^2 even   ⟺  \iff nn even.