Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 4.1.14* (Prove $\sum_{j=1} \left \lfloor \frac{n}{2^j}+ \frac{1}{2} \right \rfloor = n $)

Exercise 4.1.14* (Prove $\sum_{j=1} \left \lfloor \frac{n}{2^j}+ \frac{1}{2} \right \rfloor = n $)

Consider an integer n 1 and the integers i , 1 i n . For each k = 0 , 1 , 2 , find the number of i ’s that are divisible by 2 k but not 2 k + 1 . Thus prove

j = 1 n 2 j + 1 2 = n

and hence that we get the correct value for the sum n 2 + n 4 + n 8 + if we replace each term by its nearest integer, using the larger one if two exist.

Answers

Proof.

(a)
Let k . Consider the sets A k = { i [ [ 1 , n ] ] : 2 k i } , B k = { i [ [ 1 , n ] ] : 2 k i , 2 k + 1 i } ,

so that A k is the set of multiples of 2 k between 1 and n , and B k the set of i ’s between 1 and n that are divisible by 2 k but not 2 k + 1 . We want to estimate the number of elements of B k , written | B k | .

Note first that A k + 1 A k for all k , because 2 k + 1 i implies that 2 k i . Moreover B k = A k A k + 1 by definition of B k , so

| B k | = | A k | | A k + 1 | (1)

By Theorem 4.1(10), we obtain

| A k | = n 2 k ,

thus

| B k | = n 2 k n 2 k + 1 . (2)

The number of i [ [ 1 , n ] ] that are divisible by 2 k but not 2 k + 1 is n 2 k n 2 k + 1 .

(b)
By Problem 6, x x + 1 2 = 2 x for any real number x . Applying this formula to x = n 2 k + 1 , we obtain n 2 k + 1 + n 2 k + 1 + 1 2 = n 2 k ,

thus, by equation (2),

| B k | = n 2 k n 2 k + 1 = n 2 k + 1 + 1 2 .

If i [ [ 1 , n ] ] , then i B k if and only if k = ν p ( i ) . So

[ [ 1 , n ] ] = k B k , (disjoint union) .

Therefore

n = k = 0 | B k | = k = 0 n 2 k + 1 + 1 2 = j = 1 n 2 j + 1 2 ( j = k + 1 ) ,

so we obtain the desired result

n = j = 1 n 2 j + 1 2 . (3)
(c)
By Theorem 4.1(8), n 2 k + 1 + 1 2 is the nearest integer of n 2 k + 1 , using the larger one if two exist.

Note that

n = j = 1 n 2 j .

If we replace each term by its nearest integer, we obtain by equation (3) the same result n :

n = j = 1 n 2 j = j = 1 n 2 j + 1 2 .
User profile picture
2024-12-15 10:39
Comments