CONTINUED FRACTIONS. An expression of the form Regular Continued Fractions.The type of continued frac tion of most practical interest and importance is the simple or regular continued fraction, which is the fraction of the type -}- I I I where ... are all positive integers. Any positive number less than unity can be represented in this form, and any number whatever, positive or negative, not an integer, can be represented in the form bo+ I b I2 -F where ... , called the partial quotients, are positive integers and is either zero or an integer, positive or negative. For a positive number N, greater than unity, is the integral part of N; for a negative number N, is (b+I), where b is the integral part of N. The process of converting a positive number x/y into a regular continued fraction is effectively that of finding the greatest common measure of two numbers, so that the repre sentation is unique, with an exception to be presently mentioned, and the fraction terminates if the number is rational. If the number is irrational the fraction is infinite; and, conversely, a finite regular continued fraction is a rational number and an infinite continued fraction represents an irrational number.
The exception to the unique representation is the following. In converting a rational number into a finite continued fraction bo+ ? b , we should naturally stop at a term b , where n n was greater than unity. We might however write term as I Ii Thus we could write as I + 3 I -}- 4 I or 7 I I I I i + 3 + 3 + i , so that a rational number can be converted into a simple continued fraction having an odd or even number of partial quotients, whichever we please.
For a regular continued fraction we have pnqn_ipniqn=(I)n, so that every convergent is a fraction in its lowest terms. Every odd convergent is greater than the succeeding even con vergent. The odd convergents steadily decrease and the even convergents steadily increase. Each odd convergent is greater than the succeeding even convergent and the value of the frac tion lies between that of any two consecutive convergents. The values of ['n and each increase steadily without limit unless the fraction terminates. It follows that every infinite continued fraction of this type determines a definite irrational number ly ing in value between any odd convergent and the succeeding or preceding even convergent. Every convergent is a better approximation to f, the value of the fraction, than any preceding convergent and also than any rational fraction whose denomi nator is less than The difference between and f is less than I/qnqn+i which is less than s/qn. If the difference between f and a fraction P/Q is less than 1/2 then P/Q must be a con vergent to the continued fraction into which f can be converted. This is also true if the difference between and is less than f. Of two consecutive convergents to a regular continued frac tion, f, at least one, p/q, differs from f by less than 1/2 and of three consecutive convergents at least one, p/q, differs from f by less than I/ The very difficult problem of determining whether it is possible or not to find approximations to an irra tional number x of the form p/q, where p and q are integers, such that the difference between p/q and x is less than where k is an assigned number, depends upon continued frac tions. It has been shown that, if k <3, there are an infinite num ber of such approximations unless x is a quadratic surd of a certain type. Some recent work on this subject is given by J. H. Grace (London Math. Soc. Proc., vol. 17) and P. J. Hea wood (ibid., vol. 2o) . A result of some interest that is estab lished by means of continued fractions far more easily is that, if x and y are any two numbers whose ratio is irrational, and a is any assigned number, then an infinite succession of pairs of positive integers m and n can be found such that mxny differs from a by less than any arbitrarily assigned small positive number E.
Since any convergent p/q to the regular continued fraction into which a number x may be converted differs from x by less than and is a better approximation than any fraction whose denominator is not greater than q, we can in this way find rational numbers which are approximations to any given number of any degree of accuracy that we require, but it may happen that the actual convergent found has an inconveniently large denomi nator. The problem of finding the best approximation to a number x in the form of a rational fraction whose denominator does not exceed a given number D can be solved as follows. Let and be two consecutive convergents to the fraction representing x and let Then the fractions of the sequence pn-2 pn-2+pn-1 qn-2 qn-2+qn-1 qn-2+ are increasing or decreasing according as n is odd or even. They are called intermediate or auxiliary convergents. If we take the partial quotients of odd order with their intermediate convergents, wherever the partial coefficients differ from unity, and form the sequence p3 , Pn-2 and also the partial I qi q3 qn-2 qn quotients of even order with their intermediates, and form the quence I.. . 122 _ .. . then the members of the o q2 q4 qn-1 first sequence are steadily increasing and the members of the sec ond sequence are steadily decreasing, both sequences tending to x as a limit, x lying between every two consecutive members of either sequence; also no rational number with a denominator less than that of the second member of the pair can be inserted between them. If then we take that member of either sequence whose denominator is not greater than D and nearest to it, we have the best approximation of the kind required.
A simple application of continued fractions is to find solutions in integers of the indeterminate equation ax± by = c, where a and b are integers prime to each other and c is an integer. If we con vert alb into a continued fraction with an even number of terms and p/q is its penultimate convergent, aq bp = I; so that solu tions of the equation are furnished by x = cq -1- bt, y = c p -f- at, where t is any integer. Other interesting applications of con tinued fractions are to prove that any divisor of a number of any of the forms where a and b are mutually prime integers, is of the same form, and also not merely to prove that any prime number of the form 4n+ I can be represented as the sum of two squares in at least one way, but to obtain these representations explicitly.
A recurring continued fraction is said to be pure when all the quotients recur, mixed when there is a non-recurring part. The value of a pure recurring fraction is always of the form (P -+ AIR)/Q, being the positive solution of the equation -}- where and are the last and penultimate convergents of the terminated fraction formed by the cycle of recurring quotients. It follows imme diately that the value of a mixed recurring fraction is of the form (P + AIR)/Q. Two conjugate surds have the same cyclic part in their development. The continued fraction corresponding to surd of the form SIR/Q, where has a particular form. It is of the form b -+ I i i , the recurring -+ 62+ + 2b+ quotients being ... 2b and possessing the property b2 =. = etc. The convergents possess the property that where is one of a recurring cycle of integers. If p/q is the convergent correspond ing to the last partial quotient of a cycle, and p'/q' the preceding convergent, then = + the upper or lower sign being taken according as p/q is an even or odd convergent. These properties of the recurring continued fraction lead to the solu tions, when they exist, of the Diophantine equation = +a, where x, y, N, a are integers and N is not a perfect square. (The particular case of this equation, r, is commonly known as Pell's equation, though Pell's connection with it is simply that he published the solutions given by Brouncker and Wallis. The equation itself was proposed by Fermat as a chal lenge to the English mathematicians. The complete theory of these equations was given by Lagrange.) The case of a> ,IN can be made to depend on that of a < -IN, and in this case x/y must be a convergent to the continued fraction which is the development of AIN. Since for every such convergent pn2 = ( r) n1M1 where is one of a fixed cycle of numbers, the equation is either not soluble at all or admits of an infinite number of solutions. In particular the equation i is always soluble, x/y being a penultimate convergent to the suc cessive or alternate periods of the fraction corresponding to -IN. The equation I has no solution if the number of quotients in the period of the fraction is even. If the number of quotients is odd, the solutions are given by the penultimate convergents in the alternate periods of the fraction. If x', y' is a particular solution of then another solution is X, Y where X+ YIN = (x' -F y'A!N) r, r being any integer. If p, q is a particular solution of so is px'±Nqy', py'±Nqx', and it may be shown that all possible solutions of both equations are of these forms. That the equation I cannot always be soluble is clear from the fact that N, being a factor of r, must be the sum of the squares. It is not true however that the equation is necessarily soluble if N is the sum of two squares. The equation r is not soluble. In fact with N = 8, the only soluble equations are = I, = 4. Applications to Irrational Numbers.Some other applica tions to irrational numbers may be mentioned. If two irrationals x and y are connected by a relation of the form x= (ay+b)/(cy+d), where a, b, c, d are integers, such that ad be = ± r, then in the developments of x and y as regular continued fractions the partial quotients, after some fixed term, of one must coincide with the partial quotients, after some fixed term, of the other. In particular, if n, an index v can be found such that > pv/qv being the convergent corresponding to bp, then the irrational number x is transcendental; that is, it cannot be the root of an algebraic equation with rational coefficients.
Serret, Cours d'Algebra. Full details of the history and development can be found in the Encyclopaedie der mathematische Wissenschiiften (Leipzig in progress) or in the French edition of the same work (Tome I., vol. I., pp. 282-317). (A. E. j.)