OFFSET
0,2
LINKS
Robert Israel, Table of n, a(n) for n = 0..10000
H. I. Okagbue, M. O. Adamu, S. A. Iyase, A. A. Opanuga, Sequence of Integers Generated by Summing the Digits of their Squares, Indian Journal of Science and Technology, Vol 8(15), DOI: 10.17485/ijst/2015/v8i15/69912, July 2015.
FORMULA
MAPLE
f:= n -> convert(convert((2*n+1)^2, base, 10), `+`):
map(f, [$0..100]); # Robert Israel, Apr 26 2020
MATHEMATICA
Table[Sum[DigitCount[(2 n + 1)^2] [[i]] i, {i, 9}], {n, 0, 70}] (* Vincenzo Librandi, Jul 23 2016, after G. C. Greubel *)
PROG
(PARI) a(n) = sumdigits((2*n+1)^2); \\ Michel Marcus, Jul 23 2016
(Magma) [&+Intseq((2*n+1)^2): n in [0..87] ]; // Vincenzo Librandi, Jul 23 2016
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Jan 31 2016
STATUS
approved