OFFSET
0,14
COMMENTS
a(n) = n if and only if A262087(n) = 0.
LINKS
Robert Israel, Table of n, a(n) for n = 0..10000
EXAMPLE
a(11) = 0 because 11 = 11 + 0, so 0 is the smallest palindrome in any partitioning of 11 as a sum of two palindromes.
a(21) = 21 because 21 cannot be written as a sum of two palindromes.
MAPLE
isP := k -> StringTools[IsPalindrome](convert(k, string)):
a := NULL:
for n from 0 to 99 do
an := n:
for k from 0 to n/2 do
if isP(k) and isP(n-k) then an := min(an, k) end if
end do:
a := a, an
end do:
a;
CROSSREFS
KEYWORD
AUTHOR
Markus Sigg, Sep 18 2018
STATUS
approved