OFFSET
0,3
REFERENCES
Jeffrey Shallit, personal communication.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
R. J. Mathar, Table of n, a(n) for n = 0..500
Michael Gilleland, Some Self-Similar Integer Sequences
Robert Walker, Self Similar Sloth Canon Number Sequences
MAPLE
A006287 := proc(n)
local d ;
convert(n, base, 3) ;
add(d^2, d=%) ;
end proc: # R. J. Mathar, Jun 13 2014
MATHEMATICA
Table[Total[IntegerDigits[n, 3]^2], {n, 0, 80}] (* Harvey P. Dale, Apr 23 2011 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved