cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A040380 Continued fraction for sqrt(401).

Original entry on oeis.org

20, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40
Offset: 0

Views

Author

Keywords

Examples

			20 + 1/(40 + 1/(40 + 1/(40 + 1/(40 + ...)))) = sqrt(401).
		

Crossrefs

Cf. A041760/A041761 (convergents).

Programs

  • Maple
    with(numtheory): Digits := 300: convert(evalf(sqrt(401)),confrac);

Formula

From Elmo R. Oliveira, Feb 15 2024: (Start)
a(n) = 40 for n >= 1.
G.f.: 20*(1+x)/(1-x).
E.g.f.: 40*exp(x) - 20.
a(n) = 20*A040000(n) = 10*A040002(n) = 5*A040012(n). (End)