Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 4.1.31 (if $m = \sum_i a_i d^i$ with $0 \leq a_i < d$, then $a_i = \lfloor m/d^{i-1} \rfloor - d \lfloor m/d^i\rfloor$)
Exercise 4.1.31 (if $m = \sum_i a_i d^i$ with $0 \leq a_i < d$, then $a_i = \lfloor m/d^{i-1} \rfloor - d \lfloor m/d^i\rfloor$)
Let the positive integer be written in the base , so that with for all . Prove that .
Note: It seems that there is a typo. We must read (note of R.G.).
Answers
Proof. The positive integer can be written for every under the form
where
Therefore are the quotient and remainder in the division of by , so (by Problem 12)
Similarly, if , replacing by , so
Then equations (1) and (2) give
(This remains true if : then and .) □