Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

3.1: Binary Representations

( \newcommand{\kernel}{\mathrm{null}\,}\)

Suppose {an}n=1 is a sequence such that, for each n=1,2,3,, either an=0 or an=1 and, for any integer N, there exists an integer n>N such that an=0. Then

0an2n12n

for n=1,2,3,, so the infinite series

n=1an2n

converges to some real number x by the comparison test. Moreover,

0x<n=112n=1.

We call the sequence {an}n=1 the binary representation for x, and write

x=.a1a2a3a4.

Exercise 3.1.1

Suppose {an}n=1 and {bn}n=1 are both binary representations for x. Show that an=bn for n=1,2,3,.

Now suppose xR with 0x<1. Construct a sequence {an}n=1 as follows: If 0x<12, let a1=0; otherwise, let a1=1. For n=1,2,3,, let

sn=ni=1ai2i

and set an+1=1 if

sn+12n+1x

and an+1=0 otherwise.

lemma 3.1.1

With the notation as above,

snx<sn+12n

for n=1,2,3,.

Proof

Since

s1={0, if 0x<1212, if 12x<1

it is clear that s1x<s1+12. So suppose n>1 and sn1x<sn1+12n1. If sn1+12nx, then an=1 and

sn=sn1+12nx<sn1+12n1=sn1+12n+12n=sn+12n.

If x<sn1+12n, then an=0 and

sn=sn1x<sn1+12n=sn+12n.

Q.E.D.

Proposition 3.1.2

With the notation as above,

x=n=1an2n.

Proof

Given ϵ>0, choose an integer N such that 12n<ϵ. Then, for any n>N, it follows from the lemma that

|snx|<12n<12N<ϵ.

Hence

x=limnsn=n=1an2n.

Q.E.D.

lemma 3.1.3

With the notation as above, given any integer N there exists an integer n>N such that an=0.

Proof

If an=1 for n=1,2,3,, then

x=n=112n=1,

contradicting the assumption that 0x<1. Now suppose there exists an integer N such that aN=0 but an=1 for every n>N. Then

x=sN+n=N+112n=sN1+n=N+112n=sN1+12N,

implying that aN=1, and thus contradicting the assumption that aN=0. Q.E.D.

Combining the previous lemma with the previous proposition yields the following result.

Proposition 3.1.4

With the notation as above, x=.a1a2a3a4.

The next theorem now follows from Exercise 3.1.1 and the previous proposition.

Theorem 3.1.5

Every real number 0x<1 has a unique binary representation.


This page titled 3.1: Binary Representations is shared under a CC BY-NC-SA 1.0 license and was authored, remixed, and/or curated by Dan Sloughter via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?