Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Continued fractions are expressions that represent numbers through repeated integer parts and reciprocals. They help students approximate irrational numbers, analyze rational numbers, and understand why some fractions give especially accurate approximations. This cheat sheet gives the notation, algorithms, and main formulas needed for advanced algebra, number theory, and pre-calculus work.

Key Facts

  • A simple continued fraction has the form [a0;a1,a2,a3,]=a0+1a1+1a2+1a3+[a_0; a_1, a_2, a_3, \ldots] = a_0 + \frac{1}{a_1 + \frac{1}{a_2 + \frac{1}{a_3 + \cdots}}}, where a0a_0 is an integer and aia_i for i1i \ge 1 are positive integers.
  • To convert a rational number to a finite continued fraction, repeatedly divide using the Euclidean algorithm: x=a0+1x1x = a_0 + \frac{1}{x_1}, then x1=a1+1x2x_1 = a_1 + \frac{1}{x_2}, and continue until the remainder is 00.
  • The nnth convergent of [a0;a1,,an][a_0; a_1, \ldots, a_n] is pnqn\frac{p_n}{q_n}, a rational approximation formed by stopping the continued fraction after ana_n.
  • The convergent numerators and denominators satisfy pn=anpn1+pn2p_n = a_n p_{n-1} + p_{n-2} and qn=anqn1+qn2q_n = a_n q_{n-1} + q_{n-2}.
  • Useful starting values for convergents are p2=0p_{-2} = 0, p1=1p_{-1} = 1, q2=1q_{-2} = 1, and q1=0q_{-1} = 0.
  • Consecutive convergents obey pnqn1pn1qn=(1)n1p_n q_{n-1} - p_{n-1} q_n = (-1)^{n-1}, so each convergent pnqn\frac{p_n}{q_n} is already in lowest terms.
  • For an irrational number xx, the convergents usually alternate around xx, and the error satisfies xpnqn<1qnqn+1\left|x - \frac{p_n}{q_n}\right| < \frac{1}{q_n q_{n+1}}.
  • A quadratic irrational number has an eventually periodic continued fraction, such as 2=[1;2]\sqrt{2} = [1; \overline{2}].

Vocabulary

Continued fraction
A continued fraction is a number representation built from an integer plus the reciprocal of another expression of the same type.
Simple continued fraction
A simple continued fraction is a continued fraction [a0;a1,a2,][a_0; a_1, a_2, \ldots] whose terms after a0a_0 are positive integers.
Partial quotient
A partial quotient is one of the integers a0,a1,a2,a_0, a_1, a_2, \ldots in a continued fraction.
Convergent
A convergent is a rational approximation pnqn\frac{p_n}{q_n} found by stopping a continued fraction after finitely many partial quotients.
Periodic continued fraction
A periodic continued fraction is a continued fraction whose partial quotients repeat in a pattern, written with an overline such as [1;2][1; \overline{2}].
Euclidean algorithm
The Euclidean algorithm is the repeated division process used to find greatest common divisors and finite continued fractions for rational numbers.

Common Mistakes to Avoid

  • Dropping the reciprocal step is wrong because [a0;a1,a2][a_0; a_1, a_2] means a0+1a1+1a2a_0 + \frac{1}{a_1 + \frac{1}{a_2}}, not a0+a1+a2a_0 + a_1 + a_2.
  • Using zero or negative values for aia_i when i1i \ge 1 is wrong for simple continued fractions because those partial quotients must be positive integers.
  • Forgetting the initial recurrence values is wrong because pn=anpn1+pn2p_n = a_n p_{n-1} + p_{n-2} and qn=anqn1+qn2q_n = a_n q_{n-1} + q_{n-2} need p2=0p_{-2} = 0, p1=1p_{-1} = 1, q2=1q_{-2} = 1, and q1=0q_{-1} = 0.
  • Rounding too early is wrong because continued fractions rely on exact integer parts and exact reciprocals, so decimal rounding can change later partial quotients.
  • Assuming every infinite continued fraction is periodic is wrong because periodic continued fractions correspond to quadratic irrational numbers, not all irrational numbers.

Practice Questions

  1. 1 Write 4319\frac{43}{19} as a simple continued fraction.
  2. 2 Find the first four convergents of [1;2,2,2,][1; 2, 2, 2, \ldots].
  3. 3 Use the recurrence formulas to find p3q3\frac{p_3}{q_3} for [2;1,3,4][2; 1, 3, 4].
  4. 4 Explain why the continued fraction for a rational number must end, but the continued fraction for an irrational number does not.