%I #2 Dec 05 2013 19:57:07
%S 121,131,141,151,161,171,181,191,0,1001,1012,1021,1032,1043,1054,1065,
%T 1076,1087,1098,0
%N Least number whose absolute difference of successive digits gives the n-th palindrome (A002113), or 0 if no such number exists.
%C 1. a(n) =0 if n begins with 9 and contains odd number of digit. e.g. 919,92129, etc. Are there other valus of n for which a(n) = 0? 2. If n contains begins with 9 as a digit and contains even number of digits then a(n) is a palindrome.
%e a(99) = 909
%e a(191) = 1098. 1 - 0 = 1, 0 ~ 9 = 9, 9 - 8 = 1.
%e a(9119)= 90109.
%Y Cf. A002113.
%K base,more,nonn,uned
%O 10,1
%A _Amarnath Murthy_, Nov 09 2005
|