Processing math: 100%

Wednesday, 14 November 2012

Proof of Fibonacci's algorithm for Egyptian fractions

In my previous post I described Fibonacci's algorithm for Egyptian fractions. Here I want to go through the proof of why this algorithm always works as I think it is rather neat. This is exercise 1.2.2 of John Stillwell's 'Elements of Number Theory' and I wouldn't have got very far without being pushed in the right direction by this exercise. Note, though, that there are no solutions to the exercises in the book, so this is my own solution.

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
ba1q+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+1b(q+1)>ab(q+1)a>0b>0

as required. Next we show that b'<b. Also from (1) we have
ba<1qbq<abq+ba<bb(q+1)a<bb<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
ba1q+1=ba...(5)

and so
ba<1ba1q+1=ba<11q+1=qq+1<1ba<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
b1a11q1+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
b2a21q2+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