Homepage › Solution manuals › Kenneth Ireland › A Classical Introduction to Modern Number Theory › Exercise 2.17
Exercise 2.17
Show that is odd iff is a square or twice a square.
Answers
Proof. Note that for all , is always odd.
If , is a sum of odd numbers, so is odd.
Therefore, if , or , is odd.
Conversely, suppose that is odd, where , with . Then
is odd. Then each is odd. As each is odd, the number of terms is odd, so is even ( ). Moreover, if is odd, is twice a square. Thus is a square, or twice a square. □