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.

Showing 1-2 of 2 results.

A040812 Continued fraction for sqrt(842).

Original entry on oeis.org

29, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58
Offset: 0

Views

Author

Keywords

Examples

			29 + 1/(58 + 1/(58 + 1/(58 + 1/(58 + ...)))) = sqrt(842).
		

Crossrefs

Cf. A040000, A042624/A042625 (convergents).

Programs

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

Formula

From Elmo R. Oliveira, Feb 16 2024: (Start)
a(n) = 58 for n >= 1.
G.f.: 29*(1+x)/(1-x).
E.g.f.: 58*exp(x) - 29.
a(n) = 29*A040000(n). (End)

A042624 Numerators of continued fraction convergents to sqrt(842).

Original entry on oeis.org

29, 1683, 97643, 5664977, 328666309, 19068310899, 1106290698451, 64183928821057, 3723774162319757, 216043085343366963, 12534222724077603611, 727200961081844376401, 42190189965471051434869, 2447758218958402827598803
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A042625.

Programs

  • Mathematica
    Numerator[Convergents[Sqrt[842], 20]] (* or *) LinearRecurrence[{58, 1}, {29, 1683}, 20] (* Harvey P. Dale, Sep 24 2013 *)
    CoefficientList[Series[(29 + x)/(1 - 58 x - x^2), {x, 0, 30}], x]  (* Vincenzo Librandi, Nov 30 2013 *)

Formula

a(n) = 58*a(n-1)+a(n-2) for n>1; a(0)=29, a(1)=1683. G.f.: (29+x)/(1-58*x-x^2). [Philippe Deléham, Nov 23 2008]
Showing 1-2 of 2 results.