Exercise 2.17

Show that σ ( n ) is odd iff n is a square or twice a square.

Answers

Proof. Note that for all r 0 , σ ( 2 r ) = 1 + 2 + 2 2 + + 2 r = 2 r + 1 1 is always odd.

If p 2 , σ ( p 2 k ) = 1 + p + p 2 + + p 2 k is a sum of 2 k + 1 odd numbers, so is odd.

Therefore, if n = a 2 , or n = 2 a 2 , a , σ ( n ) is odd.

Conversely, suppose that σ ( n ) is odd, where n = p 1 k 1 p 2 k 2 p t k t , with p 1 = 2 < p 2 < < p t . Then

σ ( n ) = ( 2 k 1 + 1 1 ) p 2 k 2 + 1 1 p 2 1 p t k t + 1 1 p t 1

is odd. Then each p i k i + 1 1 p i 1 = 1 + p i + + p i k i ( i = 2 , , t ) is odd. As each p i j , j = 0 , , k i is odd, the number of terms k i + 1 is odd, so k i is even ( i = 2 , , t ). Moreover, if k 1 is odd, 2 k 1 is twice a square. Thus n is a square, or twice a square. □

User profile picture
2022-07-19 00:00
Comments