Exercise 4.2.12 (When $d(n)$ and $\sigma_k(n)$ are odd?)

Prove that the number of divisors of n is odd if and only if n is a perfect square. If the integer k 1 , prove that σ k ( n ) is odd if and only n is a square or double a square.

Answers

beginproof

(a)
Let n be a positive integer.
  • Suppose that d ( n ) is odd, where n = p 1 a 1 p 2 a 2 p l a l is the canonical prime decomposition of n . Then

    d ( n ) = ( a 1 + 1 ) ( a 2 + 1 ) ( a l + 1 )

    is odd, therefore every factor a i + 1 is odd, thus a i is even for all i . This shows that n is a perfect square.

  • Conversely, suppose that n is a perfect square, where n = p 1 a 1 p 2 a 2 p l a l . By the unique factorization theorem, every exponent a i is even, so a i = 2 b i , where b i is an integer, and n = p 1 2 b 1 p 2 2 b 2 p l 2 b l . Then

    d ( n ) = ( 2 b 1 + 1 ) ( 2 a 2 + 1 ) ( 2 a l + 1 )

    is a product of odd numbers, so d ( n ) is odd.

The number of divisors of n is odd if and only if n is a perfect square

(b)
Let k be a positive integer.
  • Suppose that σ k ( n ) is odd. We write n = 2 α p 1 a 1 p l a l the canonical prime decomposition of n , where α 0 , a i > 0 and the p i are odd prime numbers. By Problem 8,

    σ k ( n ) = 2 k ( α + 1 ) 1 2 k 1 i = 1 l p i k ( a i + 1 ) 1 p i k 1 .

    Since σ k ( n ) is odd, each factor is odd, so p i k ( a i + 1 ) 1 p i k 1 is odd for every i [ [ 1 , l ] ] . Moreover

    p i k ( a i + 1 ) 1 p i k 1 = j = 0 a i p i k j = 1 + p i k + p i 2 k + + p i k a i

    is the sum of a i + 1 odd numbers, therefore a i + 1 is odd, so a i = 2 b i for some integers b i . Then

    n = { ( 2 β p 1 b 1 p l b l ) 2 if  α = 2 β  is even, 2 ( 2 β p 1 b 1 p l b l ) 2 if  α = 2 β + 1  is odd.

    So n is a square or double a square.

  • Conversely, suppose that n = m 2 or n = 2 m 2 for some integer m . We write m = 2 β p 1 b 1 p l b l the canonical prime decomposition of m , where the p i are odd primes. Then

    n = 2 α p 1 2 b 1 p 2 2 b 2 p l 2 b l ,

    where α = 2 β + η and η = 0 or η = 1 . The formula of Problem 8 gives

    σ k ( n ) = 2 k ( α + 1 ) 1 2 k 1 i = 1 l p i k ( 2 b i + 1 ) 1 p i k 1

    Since α + 1 > 0 and k > 0 , 2 k ( α + 1 ) 1 is odd, and 2 k 1 is odd, where 2 k 1 2 k ( α + 1 ) 1 , thus 2 k ( α + 1 ) 1 2 k 1 is an odd integer. Moreover for every i [ [ 1 , l ] ] ,

    p i k ( 2 b i + 1 ) 1 p i k 1 = 1 + p i k + p i 2 k + + p i 2 k b i

    is the sum of 2 b i + 1 odd integers, thus p i k ( 2 b i + 1 ) 1 p i k 1 is odd for every i . This shows that σ k ( n ) is odd.

In conclusion, σ k ( n ) is odd if and only n is a square or double a square.

User profile picture
2025-01-14 09:35
Comments