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.

A010540 Decimal expansion of square root of 89.

Original entry on oeis.org

9, 4, 3, 3, 9, 8, 1, 1, 3, 2, 0, 5, 6, 6, 0, 3, 8, 1, 1, 3, 2, 0, 6, 6, 0, 3, 7, 7, 6, 2, 2, 6, 4, 0, 7, 1, 6, 9, 8, 3, 6, 2, 2, 6, 3, 3, 4, 1, 5, 1, 2, 1, 3, 2, 0, 6, 6, 2, 9, 8, 1, 4, 4, 8, 9, 8, 0, 0, 2, 2, 9, 0, 9, 5, 8, 5, 1, 1, 8, 0, 5, 8, 5, 4, 1, 0, 2, 6, 9, 8, 6, 8, 9, 0, 3, 8, 4, 1, 0
Offset: 1

Views

Author

Keywords

Comments

Continued fraction expansion is 9 followed by {2, 3, 3, 2, 18} repeated. - Harry J. Smith, Jun 10 2009

Examples

			9.433981132056603811320660377622640716983622633415121320662981448980022...
		

Crossrefs

Cf. A010161 (continued fraction).

Programs

  • Mathematica
    RealDigits[Sqrt[89],10,120][[1]] (* Harvey P. Dale, Nov 20 2011 *)
  • PARI
    { default(realprecision, 20080); x=sqrt(89); for (n=1, 20000, d=floor(x); x=(x-d)*10; write("b010540.txt", n, " ", d)); } \\ Harry J. Smith, Jun 10 2009
    
  • Python
    from math import isqrt
    def aupton(nn): return list(map(int, str(isqrt(89 * 10**(2*nn)))))[:nn]
    print(aupton(100)) # Michael S. Branicky, Sep 04 2021