MthT 430 Notes Chapter 4b Binary Expansions and Graphs
MthT 430 Notes Chapter 4b Binary Expansions and Graphs
Construction of the Binary Expansion by Recursion
Let x, 0 ≤ x < 1, be a real number.
We construct the binary expansion of x:
x
= 0.binb1b2…,
bk
∈ {0,1}.
This is the statement the infinite series
b1 2−1 + b2 2−2 + …+ bk 2−k + …,     bk ∈ {0,1},
converges to x.


Step 1. Divide the interval [0,[1/(20)]) into the two halves [0,[1/(21)]) and [[1/(21)],[1/(20)]).
If 0 ≤ x < [1/(21)], let




b1 = 0,
s1 = 0.binb1,
r1 = xs1.
If [1/(21)] ≤ x < [1/(20)], let




b1 = 1,
s1 = 0.binb1,
r1 = xs1.
Then 0 ≤ r1 < [1/(21)].
If r1 = 0, for n > 1, define bn = 0 and Stop! x = s1 = 0.binb1.
Suppose that Step 1.Step k. have been completed so that bj = 0 or 1 have been defined so that






sk = 0.binb1bk,
rk = xsk,
0rk < 1

2k
.
Step (k+1). Divide the interval [0,[1/(2k)]) into the two halves [0,[1/(2k+1)]) and [[1/(2k+1)],[1/(2k)]).
If 0 ≤ rk < [1/(2k+1)], let




bk+1 = 0,
sk+1 = 0.binb1bk+1,
rk+1 = xsk+1.
If [1/(2k+1)] ≤ rk < [1/(2k)], let




bk+1 = 1,
sk+1 = 0.binb1bk+1,
rk+1 = xsk+1.
Then 0 ≤ rk+1 < [1/(2k+1)].
If rk+1 = 0, for n > k+1, define bn = 0 and Stop! x = sk+1 = 0.binb1 …bk+1.


Remark. Note that

lim
k → ∞ 
sk =
lim
k → ∞ 
(x − rk) = x.



File translated from TEX by TTH, version 4.04.
On 22 Aug 2014, 13:53.