March 2006
Intermediate to advanced
576 pages
11h 43m
English
Any natural number (nonnegative integer) can be represented, in a unique way, in the form of a sum of powers Bi of some natural number B greater than 1, each of them multiplied by a natural number smaller than B. The following theorem defines the base-B numeration system.
Theorem 3.1 Given a natural number B greater than 1, any natural number x smaller than Bn can be expressed in the form
![]()
where every coefficient xi is a natural number smaller than B. Furthermore, there is only one possible vector (xn−1 xn−2 … x0) representing x.
The following algorithm computes the coefficients xi:
Algorithm 3.1
for i in 0..n − 1 loop x(i):=x mod B; x:=x/B; end loop;
Definitions 3.1