login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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