

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


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.binb 1 b 2... , bk ∈ { 0 , 1 }.
This is the statement the infinite series
b 12 −^1 + b 22 −^2 +... + bk 2 −k^ +... , bk ∈ { 0 , 1 } ,
converges to x.
Step 1. Divide the interval
into the two halves
and
If 0 ≤ x <
, let { (^) b 1 = 0, s 1 = 0.binb 1 , r 1 = x − s 1.
If
≤ x <
, let { (^) b 1 = 1, s 1 = 0.binb 1 , r 1 = x − s 1.
Then 0 ≤ r 1 <
If r 1 = 0, for n > 1, define bn = 0 and Stop! x = s 1 = 0.binb 1.
Suppose that Step 1.... Step k. have been completed so that bj = 0 or 1 have been defined so that (^)
sk = 0.binb 1... bk, rk = x − sk, 0 ≤ rk <
2 k^
Step (k+1). Divide the interval
2 k
into the two halves
2 k+
and
2 k+^
2 k
chap4b.pdf page 1/
If 0 ≤ rk <
2 k+^ , let { (^) bk+1 = 0, sk+1 = 0.binb 1... bk+1, rk+1 = x − sk+1.
If
2 k+^ ≤ rk <
2 k^ , let { (^) b k+1 = 1, sk+1 = 0.binb 1... bk+1, rk+1 = x − sk+1.
Then 0 ≤ rk+1 <
2 k+^
If rk+1 = 0, for n > k + 1, define bn = 0 and Stop! x = sk+1 = 0.binb 1... bk+1.
Remark. Note that lim k→∞ sk = lim k→∞ (x − rk) = x.
chap4b.pdf page 2/