|
|
A046486
|
|
Numbers k such that the sum of the first k palindromes is a palindrome.
|
|
3
|
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
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
|
|
|
STATUS
|
approved
|
|
|
|