OFFSET
1,3
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
EXAMPLE
First twelve base 10 palindromes are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22. Sum of their digits is 0+1+2+3+4+5+6+7+8+9+1+1+2+2 = 51, hence a(12) = 51.
MATHEMATICA
With[{pals=Select[Range[0, 500], #==IntegerReverse[#]&]}, Table[ Total[ Flatten[ IntegerDigits/@ Take[ pals, n]]], {n, Length[pals]}]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Dec 14 2016 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Giovanni Teofilatto, Jan 06 2006
EXTENSIONS
Edited and extended by Klaus Brockhaus, Jan 06 2006
STATUS
approved