login
A276190
Sum of the squares of the digits of the base-4 representation of n.
2
0, 1, 4, 9, 1, 2, 5, 10, 4, 5, 8, 13, 9, 10, 13, 18, 1, 2, 5, 10, 2, 3, 6, 11, 5, 6, 9, 14, 10, 11, 14, 19, 4, 5, 8, 13, 5, 6, 9, 14, 8, 9, 12, 17, 13, 14, 17, 22, 9, 10, 13, 18, 10, 11, 14, 19, 13, 14, 17, 22, 18, 19, 22, 27, 1, 2, 5, 10, 2, 3, 6, 11, 5, 6, 9, 14, 10, 11, 14, 19, 2
OFFSET
0,3
MAPLE
A276190 := proc(n)
local d ;
add(d^2, d= convert(n, base, 4) );
end proc:
MATHEMATICA
Table[Total[IntegerDigits[n, 4]^2 ], {n, 0, 80}] (* Harvey P. Dale, Jun 26 2022 *)
CROSSREFS
Cf. A000120 (base 2), A006287 (base 3), A276191 (base 5).
Sequence in context: A245238 A011238 A002993 * A011290 A196502 A372859
KEYWORD
nonn,base,easy
AUTHOR
R. J. Mathar, Aug 24 2016
STATUS
approved