Processing math: 39%

Monday, August 21, 2017

An easy exercise on continued fractions

1. Basic theory of continued fractions

Let (an)n0 and (bn)n1 be such that an,bn>0. (By convention, we always set b0=1.) If we define 2×2 matrices (Pn)n1 by

Pn=(0110)(011a0)(0b11a1)(0bn1an)

then it can be written in the form

Pn=(pn1pnqn1qn)

where (pn) and (qn) solves the following recurrence relation

{pn=anpn1+bnpn2,p2=0,p1=1qn=anqn1+bnqn2,p2=1,p1=0

Using the theory of fractional linear transformation, we find that

pnqn=a0+nKi=1biai=a0+b1a1+b2a2+bn1an1+bnan

where the right-hand side is the Gauss' Kettenbruch notation for continued fractions. Taking determinant to Pn and simplifying a little bit, we also obtain

pnqn=a0+ni=1(1)i1b1biqiqi1

which is often useful for establishing the convergence of the infinite continued fraction.

2. Computing some continued fractions

Let (pn) and (qn) be as before. Assume that pn/qn converges and that we can find a sequence (rn) of positive reals such that n=0qnrnxn converges for x[0,1) and diverges at x=1. Then we can compute the limit of pn/qn through the following averaging argument:

a0+Ki=1biai=lim

We give some examples to which this technique applies.

Example 1. As the first example, we consider the following identity

\dfrac{1}{1 + \dfrac{2}{2 + \dfrac{3}{3 + \ddots}}} = \mathop{\vcenter{\Large\mathrm{K}}}_{n=1}^{\infty} \frac{n}{n} = \frac{1}{e-1}.

In this case, it turns out that we can choose r_n = n!. Indeed, assume that (c_n) solves the recurrence relation c_n = n c_{n-1} + n c_{n-2}. Then the exponential generating function

y(x) = \sum_{n=0}^{\infty} \frac{c_n}{n!} x^n

solves the initial value problem

y' + \frac{x^2+1}{x(x-1)} y = \frac{c_0}{x(x-1)}, \qquad y(0) = c_0.

The solution is easily found by the integrating factor method.

y(x) = \frac{c_0 + (c_1 - 2c_0)x e^{-x}}{(x-1)^2}.

Plugging c_n = p_n and c_n = q_n, we obtain

\mathop{\vcenter{\Large\mathrm{K}}}_{n=1}^{\infty} \frac{n}{n} = \lim_{x \to 1^-} \frac{p_0 + (p_1 - 2p_0)x e^{-x}}{q_0 + (q_1 - 2q_0)x e^{-x}} = \frac{e^{-1}}{1 - e^{-1}} = \frac{1}{e-1}

as desired.

Example 2. The exponential generating function y(x) of c_n = nc_{n-1} + nc_{n-2} solves the equation

(x-1)y'' + 2y' + y = 0.

Any solution of this equation is of the form

y(x) = \frac{\alpha I_1(2\sqrt{1-x}) + \beta K_1(2\sqrt{1-x})}{\sqrt{1-x}},

where I_1 and K_1 are the modified Bessel functions of order 1. From this we deduce that

\dfrac{1}{1 + \dfrac{1}{2 + \dfrac{1}{3 + \ddots}}} = \mathop{\vcenter{\Large\mathrm{K}}}_{n=1}^{\infty} \frac{1}{n} = \lim_{x \to 1^-} \frac{I_1(2) K_1(2\sqrt{1-x}) - K_1(2) I_1(2\sqrt{1-x})}{I_0(2) K_1(2\sqrt{1-x}) + K_0(2) I_1(2\sqrt{1-x})} = \frac{I_1(2)}{I_0(2)}.

Example 3. Consider the Rogers-Ramanujan continued fraction

\dfrac{1}{1 + \dfrac{q}{1 + \dfrac{q^2}{1 + \ddots}}} = \mathop{\vcenter{\Large\mathrm{K}}}_{n=1}^{\infty} \frac{q^{n-1}}{1}.

Adopting the same strategy, the generating function y(x) = \sum_{n=0}^{\infty} c_n x^n for the recurrence relation c_n = c_{n-1} + q^{n-1} c_{n-2} satisfies

y(x) = c_0 + \frac{c_1 x}{1-x} + \frac{qx^2}{1-x} y(qx).

Let y_0 be the solution for (c_0, c_1) = (0, 1) and y_1 the solution for (c_0, c_1) = (1, 1). Then it follows that both y_0 and y_1 has simple pole at x = 1 and thus

\mathop{\vcenter{\Large\mathrm{K}}}_{n=1}^{\infty} \frac{q^{n-1}}{1} = \frac{1 + q y_0(q)}{1 + q y_1(q)}.

Iterating the functional equation for y_0 and y_1, we find that

1 + qy_0(q) = \sum_{n=0}^{\infty} \frac{q^{n(n+1)}}{(q;q)_n}, \qquad 1 + qy_1(q) = \sum_{n=0}^{\infty} \frac{q^{n^2}}{(q;q)_n}.

Rogers-Ramanujan identities tell that these can be represented in terms of infinite q-Pochhammer symbol.