|
|
A254375
|
|
Digital roots of centered heptagonal numbers (A069099).
|
|
2
|
|
|
1, 8, 4, 7, 8, 7, 4, 8, 1, 1, 8, 4, 7, 8, 7, 4, 8, 1, 1, 8, 4, 7, 8, 7, 4, 8, 1, 1, 8, 4, 7, 8, 7, 4, 8, 1, 1, 8, 4, 7, 8, 7, 4, 8, 1, 1, 8, 4, 7, 8, 7, 4, 8, 1, 1, 8, 4, 7, 8, 7, 4, 8, 1, 1, 8, 4, 7, 8, 7, 4, 8, 1, 1, 8, 4, 7, 8, 7, 4, 8, 1, 1, 8, 4, 7, 8
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
The sequence is periodic with period 9.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = a(n-9).
G.f.: -x*(x^8+8*x^7+4*x^6+7*x^5+8*x^4+7*x^3+4*x^2+8*x+1) / ((x-1)*(x^2+x+1)*(x^6+x^3+1)).
|
|
EXAMPLE
|
a(3) = 4 because the 3rd centered heptagonal number is 22, the digital root of which is 4.
|
|
MATHEMATICA
|
LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 8, 4, 7, 8, 7, 4, 8, 1}, 86] (* Ray Chandler, Aug 26 2015 *)
|
|
PROG
|
(PARI) m=9; vector(200, n, (m*n*(n-1)/2)%9+1)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|