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.

A166925 Digital root of square of n-th triangular number.

Original entry on oeis.org

1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9
Offset: 1

Views

Author

Zak Seidov, Oct 23 2009

Keywords

Comments

Period is (1,9,9).

Crossrefs

Programs

  • Magma
    &cat[[1,9,9]: n in [1..29]]; // Bruno Berselli, May 05 2011
  • Mathematica
    Table[If[(m9 = Mod[(n(n + 1))^2/4, 9]) == 0, 9, m9], {n, 200}]

Formula

G.f.: x*(1+9*x+9*x^2)/(1-x^3). - Bruno Berselli, May 05 2011
a(n) = A010888(A000537(n)). - Michel Marcus, Mar 17 2023