login
A166925
Digital root of square of n-th triangular number.
1
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,2
COMMENTS
Period is (1,9,9).
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
MATHEMATICA
Table[If[(m9 = Mod[(n(n + 1))^2/4, 9]) == 0, 9, m9], {n, 200}]
PROG
(Magma) &cat[[1, 9, 9]: n in [1..29]]; // Bruno Berselli, May 05 2011
CROSSREFS
KEYWORD
base,less,easy,nonn
AUTHOR
Zak Seidov, Oct 23 2009
STATUS
approved