Continued fractions and quadratic surds
I became interested in the nearest square (NSCF), nearest integer (NICF) and optimal continued fractions (OCF) through Jim White of the ANU around October 2007.
Prior to that I had avoided half-regular continued fractions (HRCF). John Robertson also joined Jim and myself in thinking about these things.
NICF refers here to a half-regular continued fraction where the partial numerators are allowed to be ±1, in contrast to the nearest integer continued fraction of Adolf Hurwitz and B. Minnegerode, where the partial numerators are all -1.)
I should also mention Selenius' ideal relative approximation continued fraction (IACF or SK) which appears to be essentially the same as, but harder to describe than, the OCF. I marvel at the way Selenius was able to navigate the complexity of the notation in his 1960 paper and discover nice results, some of which I have been able to prove in the case of OCF. Selenius first obtains the regular continued fraction (RCF) and replaces all 1's by a process of singularisation. So far the notation and the fact that it is in German, prevent me from even programming SK!
For quadratic surds, the period-lengths of OCF and SK are sometimes double that of the period-length of the corresponding NSCF.
Contrary to a disparaging review by D.H. Lehmer of A.A.K. Ayyangar's paper 3 below, NSCF has some nice properties. For example, the period-length of the NSCF expansion for √D is no greater than and can be much shorter than the RCF period-length.
Also there are three mid-point criteria for solving Pell's equation - see paper 12 below.
There are several things that continue to challenge me:
- BCMATH continued fraction programs
- On the regular continued fraction (RCF) expansion of √22n+1 (pdf)
- Some continued fraction identities (pdf)
- Primitive Pythagorean triples and the negative Pell equation (pdf)
- A unimodular matrix and Pell's equation (pdf)
- Reduced quadratic irrationals and Pell's equation (pdf)
- Solving Ax2 - By2 = N in integers, where A > 0, B > 0 and D = AB is not a perfect square and gcd(A,B) = gcd(A,N) = 1 (pdf)
- Latexed version (pdf 347K) of Theory of the nearest square continued fraction, A.A. Krishnaswami Ayyangar, J. Mysore Univ. Sect. A. 1, (1941) 97-117.
The original paper was indistinct in many places.
Also I have expanded and changed the author's proofs in some places when they were hard to follow. (Updates - footnote on page 37, 31st March 2008)
- The nearest square continued fraction expansion of (p+q+√p2+q2)/p, where p > 2q > 0, gcd(p,q)=1
- Some connections between the optimal continued fraction (OCF) and the nearest square continued fraction (NSCF) (last updated 31st March 2008)
- On the definition of nearest integer (NICF) reduced quadratic surd (joint with John Robertson)
- Midpoint criteria for solving Pell's equation using the nearest square continued fraction, (joint with John Robertson and Jim White, to be submitted)
- John P. Robertson and Keith R. Matthews, A continued fractions approach to a result of Feit, The American Mathematical Monthly 115 April (2008), 346-349
- Keith R. Matthews, John P. Robertson, Jim White, Corrigenda to `Calculation of the regulator of Q(√D) by use of the nearest integer continued fraction algorithm', (to appear, Mathematics of Computation)
Keith Matthews
Last modified 6th May 2008