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.

A010173 Continued fraction for sqrt(107).

Original entry on oeis.org

10, 2, 1, 9, 1, 2, 20, 2, 1, 9, 1, 2, 20, 2, 1, 9, 1, 2, 20, 2, 1, 9, 1, 2, 20, 2, 1, 9, 1, 2, 20, 2, 1, 9, 1, 2, 20, 2, 1, 9, 1, 2, 20, 2, 1, 9, 1, 2, 20, 2, 1, 9, 1, 2, 20, 2, 1, 9, 1, 2, 20, 2, 1, 9, 1, 2, 20, 2, 1, 9, 1, 2, 20, 2, 1
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A177935 (decimal expansion), A041192/A041193 (convergents).

Programs

  • Mathematica
    ContinuedFraction[Sqrt[107],300] (* Vladimir Joseph Stephan Orlovsky, Mar 11 2011 *)
  • Python
    from sympy import sqrt
    from sympy.ntheory.continued_fraction import continued_fraction_iterator
    def aupton(terms):
        gen = continued_fraction_iterator(sqrt(107))
        return [next(gen) for i in range(terms)]
    print(aupton(82)) # Michael S. Branicky, Oct 02 2021

Formula

G.f.: (-10*x^6 - 2*x^5 - x^4 - 9*x^3 - x^2 - 2*x - 10)/(x^6 - 1). - Chai Wah Wu, Oct 02 2021

A041192 Numerators of continued fraction convergents to sqrt(107).

Original entry on oeis.org

10, 21, 31, 300, 331, 962, 19571, 40104, 59675, 577179, 636854, 1850887, 37654594, 77160075, 114814669, 1110492096, 1225306765, 3561105626, 72447419285, 148455944196, 220903363481, 2136586215525, 2357489579006
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A041193 (denominators), A010173 (continued fraction), A177935 (decimal expansion).

Programs

  • Mathematica
    Numerator[Convergents[Sqrt[107], 30]] (* Vincenzo Librandi, Oct 26 2013 *)

Formula

a(n) = 1924*a(n-6)-a(n-12). G.f.: -(x^11-10*x^10+21*x^9-31*x^8+300*x^7-331*x^6-962*x^5-331*x^4-300*x^3-31*x^2-21*x-10)/(x^12-1924*x^6+1). [Colin Barker, Jul 19 2012]
Showing 1-2 of 2 results.