
David G. answered 09/07/19
Experienced Discrete Mathematics teacher and tutor
Here are some more hints for part b.
The relevant numbers are 2, for odd numbers, and 3, for multiples of 3 [the condition 3|n means 3 divides n].
We are asked to show that for odd numbers n, either n is a multiple of 3 or n2 ≡ 1 (mod 12).
Following up on Tim C's hint, consider numbers mod 12. The odd numbers are 1, 3, 5, 7, 9, 11. Of these, 3 and 9 and also multiples of 3.
We need to show that the other numbers, when squared, are congruent to 1 (mod 12).
Let's check a couple together:
5: 52 = 25 and 25 ≡ 1 (mod 12)
11: 112 = 121 and 121 ≡ 1 (mod 12)
You can similarly check 1 and 7, which are the only remaining odd numbers (mod 12) that are not multiples of 3.
Once you have checked these, you are done, because we are only making a statement about numbers mod 12.
[If one wants to show this in detail, consider n = a + 12k, so that n ≡ a (mod 12). We can show that
n2 ≡ a2 (mod 12) as follows:
n2 = (a + 12k)2 = a2 + 24k + 144k2
but 24k ≡ 0 (mod 12)
and 144k2 ≡ 0 (mod 12)
so n2 ≡ a2 + 0 + 0 ≡ a2 (mod 12) ]