Docsity

Binary Expansion of Real Numbers: Construction by Recursion, Study notes of Mathematics

Toggle sidebar
bg1
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
b12−1+b22−2+. . . +bk2−k+. . . , bk∈ {0,1},
converges to x.
Step 1. Divide the interval ·0,1
20into the two halves ·0,1
21and ·1
21,1
20.
If 0 ≤x < 1
21, let
(b1= 0,
s1= 0.binb1,
r1=x−s1.
If 1
21≤x < 1
20, let
(b1= 1,
s1= 0.binb1,
r1=x−s1.
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.binb1. . . bk,
rk=x−sk,
0≤rk<1
2k.
Step (k+1). Divide the interval ·0,1
2kinto the two halves ·0,1
2k+1 and ·1
2k+1 ,1
2k.
chap4b.pdf page 1/2
pf2

Partial preview of the text

Download Binary Expansion of Real Numbers: Construction by Recursion and more Study notes Mathematics in PDF only on Docsity!

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/