Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 4.4.13 (Number of decompositions of $n$ in sum of odd numbers.)

Exercise 4.4.13 (Number of decompositions of $n$ in sum of odd numbers.)

Show that the number of ways of writing a positive integer n in the form n = m 1 + m 2 + + m k where k is an arbitrary positive integer and m 1 , m 2 , , m k are arbitrary odd positive integers is F n .

Answers

Proof. For every positive integer n , we write G n the number of ways of writing n in the form n = m 1 + m 2 + + m k , where k is an arbitrary positive integer and m 1 , m 2 , , m k are arbitrary odd positive integers.

If G n , i denotes the number of such decompositions of n satisfying m k = i , where i n is an odd positive integer, then, as in Problem 12,

G n = 1 i n , i 1 [ 2 ] G n , i = j = 0 ( n 1 ) 2 G n , 2 j + 1 .

We note that if 1 i n , then G n , i is the number of ways of writing n i in the form n i = m 1 + m 2 + + m k 1 , where k 1 is an arbitrary positive integer, so

G n , i = G n i , ( 1 i n 1 , i  odd ) .

  • If n is odd, say n = 2 m + 1 , then G n = G 2 m + 1 = j = 0 m G n , 2 j + 1 .

    • If j = m , then the unique decomposition satisfying m k = 2 j + 1 = n is n = m 1 , so k = 1 and G n , n = G 2 m + 1 , 2 m + 1 = 1 .
    • If 0 j m 1 , then G n , 2 j + 1 = G n 2 j 1 = G 2 ( m j ) .

    Therefore

    G 2 m + 1 = 1 + G 2 + G 4 + + G 2 m .
  • If n is even, say n = 2 m , then G n = G 2 m = j = 0 m 1 G n , 2 j + 1 .

    For 0 j m 1 , G n , 2 j + 1 = G n 2 j 1 = G 2 ( m j ) 1 ,

    Therefore

    G 2 m = G 1 + G 3 + + G 2 m 1 .

    To summarize, for every positive integer m ,

    G 2 m = G 1 + G 3 + + G 2 m 1 , (1) G 2 m + 1 = 1 + G 2 + G 4 + + G 2 m . (2)

Then G n is determined by these relation, knowing that G 1 = 1 , G 2 = 1 , since 1 = 1 , and 2 = 1 + 1 are the only decompositions of 1 and 2 in sum of odd integers.

Consider the proposition

𝒫 ( m ) i , 1 i < 2 m F i = G i .

Since G 1 = F 1 = 1 , 𝒫 ( 1 ) is true. Suppose that 𝒫 ( m ) is true for some positive integer m . We know that G 2 = F 2 = 1 , and for m 2 , by (1) and (2) and the induction hypothesis,

G 2 m = G 1 + G 3 + + G 2 m 1 = F 1 + F 3 + + F 2 m 1 = 1 + F 1 + F 2 + + F 2 m 3 + F 2 m 2 ( F 1 = 1 ) = F 2 m ( by Problem 5 ) ,

and, using G 2 m = F 2 m ,

G 2 m + 1 = 1 + G 2 + G 4 + + G 2 m = 1 + F 2 + F 4 + + F 2 m = 1 + F 0 + F 1 + F 2 + F 3 + + F 2 m 2 + F 2 m 1 ( F 0 = 0 ) = F 2 m + 1 ( by Problem 5 ) .

This shows 𝒫 ( m + 1 ) , and the induction is done. We conclude that for all positive integers n ,

G n = F n .

User profile picture
2025-02-20 11:33
Comments