| Table 1 |
|
k |
qk |
pk |
ak |
rk |
1/rk |
Current
Fraction |
Error |
Valid
|
Remarks |
| -2 |
1 |
0 |
|
|
|
|
|
|
We first set up the table
by writing the values for p and q when k=-2 and k=-1. That is, 1,0 and
0, 1 |
| -1 |
0 |
1 |
|
|
|
|
|
|
|
| 0 |
1 |
1 |
1 |
0.7321 |
1.7321 |
|
|
|
We can either compute all
the a's and then compute the q's and p's, or do both together (Just a
preference. I like to compute the a's first). At first we simply make a0
equal to the integer part of the decimal. So because the original
decimal is 1.7321, a0=1.
We then compute the p's and q's as follows:
q0=a0·q-1+q-2
=1·0+1=1
p0=a0·p-1+p-2
=1·1+0=1
|
| 1 |
1 |
2 |
1 |
0.3659 |
1.3659 |
2.0000000000 |
0.2679000000 |
yes |
q1=a1·q0+q-1
=1·1+0=1
p1=a1·p0+p-1
=1·1+1=2 |
| 2 |
3 |
5 |
2 |
0.7330 |
2.7330 |
1.6666666667 |
0.0654333333 |
yes |
q2=a2·q1+q0
=2·1+1=3
p2=a2·p1+p0
=2·2+1=5 |
| 3 |
4 |
7 |
1 |
0.3643 |
1.3643 |
1.7500000000 |
0.0179000000 |
yes |
|
| 4 |
11 |
19 |
2 |
0.7450 |
2.7450 |
1.7272727273 |
0.0048272727 |
yes |
|
| 5 |
15 |
26 |
1 |
0.3423 |
1.3423 |
1.7333333333 |
0.0012333333 |
yes |
|
| 6 |
41 |
71 |
2 |
0.9214 |
2.9214 |
1.7317073171 |
0.0003926829 |
yes |
|
| 7 |
56 |
97 |
1 |
0.0853 |
1.0853 |
1.7321428571 |
0.0000428571 |
no |
As the error is less than
0.00005, which, if we consider the decimal to be accurate to 4 places,
means the actual error is less than the expected error, so this and any
further results are questionable. |