login
Smallest palindrome beginning with n and digit sum n, or 0 if no such number exists.
1

%I #7 Dec 05 2013 20:06:33

%S 1,2,3,4,5,6,7,8,9,10801,11711,12621,13531,14441,15351,16261,17171,

%T 1881,0,208802,2139312,227722,2329232,246642,2519152,265562

%N Smallest palindrome beginning with n and digit sum n, or 0 if no such number exists.

%C a(19) = 0. This is the only zero in the sequence. Every other integer k > 9 has digit sum <= k/2, so the center can always be filled in to make a palindrome.

%Y Cf. A056544, A082216.

%K base,easy,nonn

%O 1,2

%A _Amarnath Murthy_ and Meenakshi Shrikant (menakan_s(AT)yahoo.com), Apr 09 2003