Let a, b and q be natural numbers such that
1q+1<ba<1q...(1)
then 1/q is at most 1 and so it follows that b<a as we saw previously. It also follows from (1) that 1/(q+1) is the largest unit fraction less than b/a since 1/(q+1) and 1/q straddle b/a. Now
ba−1q+1=b(q+1)−aa(q+1)...(2)
so let
b′=b(q+1)−a...(3)
and
a′=a(q+1)...(4)
First we show that b'>0. From (1) we have that
ba>1q+1⇔b(q+1)>a⇔b(q+1)−a>0⇔b′>0
as required. Next we show that b'<b. Also from (1) we have
ba<1q⇔bq<a⇔bq+b−a<b⇔b(q+1)−a<b⇔b′<b
as required. It also follows from the definitions of a' and b' and the fact that b'>0 that a' and b' are natural numbers.
Finally we show that b'<a'. From (2), (3) and (4) we have
ba−1q+1=b′a′...(5)
and so
ba<1⇔ba−1q+1=b′a′<1−1q+1=qq+1<1⇔b′a′<1
We now demonstrate why Fibonacci's algorithm always works. Let b1/a1 be the initial fraction such that
1q1+1<b1a1<1q1...(6)
where a1, b1, and q1 are natural numbers, then 1/(q1+1) is the largest possible unit fraction less than b1/a1. Thus, on the first iteration, on subtracting 1/(q1+1) from b1/a1 we obtain the fraction
b1a1−1q1+1=b2a2...(7)
where a2 and b2 are natural numbers and b2<b1 and b2<a2. On the second iteration we find q2 such that
1q2+1<b2a2<1q2...(8)
then 1/(q2+1) is the largest possible unit fraction less than b2/a2. Thus, on the second iteration, on subtracting 1/(q2+1) from b2/a2 we obtain the fraction
b2a2−1q2+1=b3a3...(9)
where a3 and b3 are natural numbers and b3<b2<b1 and b3<a3 and so on.
Hence, by a process of descent we must eventually end up with a bj=1 for some j, and we have from (7), (9) etc
b1a1=1q1+1+1q2+1+...+1aj...(10)
as expected. Phew! That was tricky to write out correctly!
No comments:
Post a Comment