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.

A240071 Irregular triangle of the simple continued fraction of sqrt(n).

Original entry on oeis.org

1, 1, 2, 1, 1, 2, 2, 2, 4, 2, 2, 4, 2, 1, 1, 1, 4, 2, 1, 4, 3, 3, 6, 3, 3, 6, 3, 2, 6, 3, 1, 1, 1, 1, 6, 3, 1, 2, 1, 6, 3, 1, 6, 4, 4, 8, 4, 4, 8, 4, 2, 1, 3, 1, 2, 8, 4, 2, 8, 4, 1, 1, 2, 1, 1, 8, 4, 1, 2, 4, 2, 1, 8, 4, 1, 3, 1, 8, 4, 1, 8, 5, 5, 10, 5, 5, 10
Offset: 1

Views

Author

T. D. Noe, Apr 04 2014

Keywords

Examples

			Irregular table in which the first term is the non-repeating part:
{1},
{1, 2},
{1, 1, 2},
{2},
{2, 4},
{2, 2, 4},
{2, 1, 1, 1, 4},
{2, 1, 4},
{3},
{3, 6},
{3, 3, 6},
{3, 2, 6},
{3, 1, 1, 1, 1, 6},
{3, 1, 2, 1, 6}
		

Crossrefs

Cf. A067280 (length of the continued fraction of sqrt(n)).

Programs

  • Mathematica
    Table[Flatten[ContinuedFraction[Sqrt[n]]], {n, 30}]