Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 1.2.44 (Binary decomposition of positive integers)
Exercise 1.2.44 (Binary decomposition of positive integers)
Prove that every positive integer is uniquely expressible in the form
where and .
Answers
Proof. This is the usual binary representation of a positive integer.
We reason by induction to prove the existence of such a representation.
First , where .
Now let be any integer, and assume that every positive integer is expressible in the form where and . In others words, if we denote the set of finite subsets of , we assume , where
(If we take , is represented.)
We prove that itself is so represented. The division of by gives
Then , so that we may apply the induction hypothesis to :
for some non empty finite set . Then
where . Note that .
Now define if , and if . Then
This proves , and the induction is done. Therefore every positive integer is of the form
for some non empty subset . If ,
Now we prove the unicity of such a representation. Suppose that
where are non empty finite subsets of . if and , this gives
where and .
Without loss of generality, we may suppose that . Assume, for the sake of contradiction, that there is some such that , and let be the first index for which . Then
If , then all terms except are divisible by , so that , and . This is a contradiction, and we obtain a similar contradiction if . Therefore . If , we obtain after simplification : this is absurd, so and . The two representations are identical. □
Comments
-
Hi Richard, if you want me to delete the comments once the erratas have been discovered, let me know or you can do it yourself to make the final draft without comments. Glad to help. I will work through them all, but I will work slowly. Today I noticed here that the set A=\{j_{1}..etc\} should begin with subscript 0. Same with set B. Also after the phrase "after simplification" the subscript should be k_{m+1} instead of k_{m}+1.BretSherfinski • 2025-02-27
-
Hi Bret. Errors corrected. I don't see any point in destroying the comments: they are part of the history of each exercise. Even if I am a little ashamed of the remaining errors, I know that even a careful rereading on my part would not be enough: I had reread this solution without seeing anything! I regretted until now the lack of reactions to these solutions, and I am happy that an exchange is taking place through these comments. I myself had made some remarks to solutions of other people on this site, unfortunately often remaining unanswered. I will remain attentive to all your suggestions, and I will respond to them regularly. Thank you.richardganaye • 2025-03-03