login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A254373 Digital roots of centered square numbers (A001844). 2
1, 5, 4, 7, 5, 7, 4, 5, 1, 1, 5, 4, 7, 5, 7, 4, 5, 1, 1, 5, 4, 7, 5, 7, 4, 5, 1, 1, 5, 4, 7, 5, 7, 4, 5, 1, 1, 5, 4, 7, 5, 7, 4, 5, 1, 1, 5, 4, 7, 5, 7, 4, 5, 1, 1, 5, 4, 7, 5, 7, 4, 5, 1, 1, 5, 4, 7, 5, 7, 4, 5, 1, 1, 5, 4, 7, 5, 7, 4, 5, 1, 1, 5, 4, 7, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The sequence is periodic with period 9.
LINKS
FORMULA
a(n) = A010888(A001844(n)).
a(n) = a(n-9).
G.f.: -x*(x^8+5*x^7+4*x^6+7*x^5+5*x^4+7*x^3+4*x^2+5*x+1) / ((x-1)*(x^2+x+1)*(x^6+x^3+1)).
EXAMPLE
a(3) = 4 because the 3rd centered square number is 13, the digital root of which is 4.
MATHEMATICA
FixedPoint[Plus @@ IntegerDigits[#] &, #] & /@ Table[2 n (n + 1) + 1, {n, 0, 80}] (* Michael De Vlieger, Feb 01 2015 *)
LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 5, 4, 7, 5, 7, 4, 5, 1}, 86] (* Ray Chandler, Aug 26 2015 *)
PROG
(PARI) m=4; vector(200, n, (m*n*(n-1)/2)%9+1)
CROSSREFS
Sequence in context: A188932 A366162 A195428 * A343564 A004446 A115409
KEYWORD
nonn,easy,base
AUTHOR
Colin Barker, Jan 29 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 07:07 EDT 2024. Contains 371964 sequences. (Running on oeis4.)