OFFSET
1,2
LINKS
Patrick De Geest, World!Of Numbers
EXAMPLE
a(n)=47 so 1+2+3+...+373+383 (47 terms) = 7557.
MATHEMATICA
palQ[n_] := Reverse[x = IntegerDigits[n]] == x; t = Select[Range[25000], palQ[#] &]; Flatten[Rest[Position[Accumulate[t], _?palQ]]] (* Jayanta Basu, Jun 26 2013 *)
Position[Accumulate[Select[Range[100000], PalindromeQ]], _?PalindromeQ] // Flatten (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jan 31 2020 *)
CROSSREFS
KEYWORD
nonn,hard,base
AUTHOR
Patrick De Geest, Sep 15 1998
STATUS
approved