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.

A010341 Sum of all terms except last in period of continued fraction for sqrt(n).

Original entry on oeis.org

0, 0, 1, 0, 0, 2, 3, 1, 0, 0, 3, 2, 4, 4, 1, 0, 0, 4, 9, 2, 6, 10, 5, 1, 0, 0, 5, 8, 6, 2, 15, 3, 4, 6, 1, 0, 0, 6, 4, 3, 4, 2, 17, 8, 8, 22, 7, 1, 0, 0, 7, 12, 8, 12, 6, 2, 8, 6, 13, 4
Offset: 1

Views

Author

N. J. A. Sloane, Walter Gilbert

Keywords

Crossrefs

Programs

  • Mathematica
    Table[With[{s=Sqrt[n]},If[IntegerQ[s],0,Total[Most[ContinuedFraction[s][[2]]]]]],{n,60}] (* Harvey P. Dale, Jul 20 2025 *)