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.

A160390 Decimal expansion of sqrt(3) - 1.

Original entry on oeis.org

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

Views

Author

Harry J. Smith, May 31 2009

Keywords

Comments

Continued fraction expansion leads to the ternary digital root of n.

Examples

			0.732050807568877293527446341505872366942805253810380628055806979451933...
		

Crossrefs

Cf. A002194, A134451 (continued fraction).

Programs

  • Magma
    SetDefaultRealField(RealField(100)); Sqrt(3) -1; // G. C. Greubel, Nov 20 2018
    
  • Mathematica
    RealDigits[Sqrt[3]-1,10,120][[1]] (* Harvey P. Dale, Dec 16 2016 *)
  • PARI
    default(realprecision, 20080); x=10*(sqrt(3)-1); for (n=0, 20000, d=floor(x); x=(x-d)*10; write("b160390.txt", n, " ", d));
    
  • Sage
    numerical_approx(sqrt(3) -1, digits=100) # G. C. Greubel, Nov 20 2018