PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: Very high Entry average rating: No information on entry rating
[parent] uniqueness of digital representation (Theorem)

Theorem. Let the positive integer $b$ be the base of a positional digital system. Every positive integer $a$ may be represented uniquely in the form

$\displaystyle a \;=\; s_nb^n+s_{n-1}b^{n-1}+\ldots+s_1b+s_0,$ (1)

where the integers $s_i$ satisfy $0 \leqq s_i \leqq b\!-\!1$ and $s_n \neq 0$ .

The theorem means that the integer $a$ may be represented e.g. in the decimal system in the form $$s_n\,s_{n-1}\ldots s_1\,s_0$$ in one and only one way.

Proof. Let $b^n$ be the highest integer power of $b$ not exceeding $a$ . By the division algorithm for integers, we obtain in succession

  $\displaystyle a \;\;\,=\; s_nb^n+r_1 \qquad$ $\displaystyle (0 < s_n < b, \quad 0 \leqq r_1 < b^n),$    
  $\displaystyle r_1 \,\;=\; s_{n-1}b^{n-1}+r_2$ $\displaystyle (0 \leqq s_{n-1} < b, \quad 0 \leqq r_2 < b^{n-1}),$    
  $\displaystyle r_2 \,\;=\; s_{n-2}b^{n-2}+r_3$ $\displaystyle (0 \leqq s_{n-2} < b, \quad 0 \leqq r_3 < b^{n-2}),$    
  $\displaystyle \qquad \vdots$    
  $\displaystyle r_{n-2} \;=\; s_2b^2+r_{n-1}$ $\displaystyle (0 \leqq s_2 < b, \quad 0 \leqq r_{n-1} < b^2),$    
  $\displaystyle r_{n-1} \;=\; s_1b+s_0$ $\displaystyle (0 \leqq s_1 < b, \quad 0 \leqq s_0 < b).$    

Adding these equations yields the equation (1) with $0\leqq s_i \leqq b\!-\!1$ , $s_n \neq 0$ .

For showing the uniqueness of (1) we suppose also another representation $$a \;=\; t_mb^m+t_{m-1}b^{m-1}+\ldots+t_1b+t_0$$ with $0 \leqq t_i \leqq s\!-\!1$ , $b_m \neq 0$ . The equality

$\displaystyle s_nb^n+s_{n-1}b^{n-1}+\ldots+s_1b+s_0 \;=\; t_mb^m+t_{m-1}b^{m-1}+\ldots+t_1b+t_0$ (2)

immediately implies $$s_0 \;\equiv\; t_0 \pmod b, \quad \mbox{i.e.} \quad b \mid s_0\!-\!t_0.$$ Since now $|s_0\!-\!t_0| \leqq b\!-\!1$ , we infer that $s_0\!-\!t_0 = 0$ and thus $t_0 = s_0$ . Consequently, we can then infer from (2) that $s_1b \equiv t_1b \pmod {b^2}$ , whence $s_1 \equiv t_1 \pmod b$ , and as before, $t_1 = s_1$ . We may continue in similar manner and see that always $t_i = s_i$ , whence also $m = n$ . Accordingly, the both representations are identical. Q.E.D.

Remark. There is the following generalisation of the theorem. -- If we have an infinite sequence $b_1,\,b_2,\,\ldots$ of integers greater than 1, then $a$ may be represented uniquely in the form $$a \;=\; \sum_{i=0}^n s_ib_1b_2\cdots b_i$$ where the integers $s_i$ satisfy $0 \leqq s_i < b_{i+1}$ and $s_n \neq 0$ . Cf. the factorial base.




"uniqueness of digital representation" is owned by pahio.
(view preamble | get metadata)

View style:

See Also: unambiguity of factorial base representation, uniqueness of Fourier expansion, Zeckendorf's theorem

Other names:  uniqueness of decimal representation, digital representation of integer
Keywords:  digital representation

This object's parent.

Attachments:
examples of uniqueness of digital representation of small numbers in a few bases (Example) by PrimeFan
divisibility of nine-numbers (Theorem) by pahio
Log in to rate this entry.
(view current ratings)

Cross-references: factorial base, sequence, infinite, implies, equality, equations, division algorithm for integers, proof, base, integer, positive, theorem

This is version 11 of uniqueness of digital representation, born on 2009-03-26, modified 2009-11-21.
Object id is 11718, canonical name is UniquenessOfDigitalRepresentation.
Accessed 653 times total.

Classification:
AMS MSC11A05 (Number theory :: Elementary number theory :: Multiplicative structure; Euclidean algorithm; greatest common divisors)
 11A63 (Number theory :: Elementary number theory :: Radix representation; digital problems)

Pending Errata and Addenda
None.
[ View all 1 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | prove | add result | add corollary | add example | add (any)