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”).

Palindromes with either no internal digits or all internal digits are 0.
1

%I #20 Oct 05 2023 18:03:15

%S 0,1,2,3,4,5,6,7,8,9,11,22,33,44,55,66,77,88,99,101,202,303,404,505,

%T 606,707,808,909,1001,2002,3003,4004,5005,6006,7007,8008,9009,10001,

%U 20002,30003,40004,50005,60006,70007,80008,90009,100001,200002,300003,400004

%N Palindromes with either no internal digits or all internal digits are 0.

%C How is this sequence obtained from the given formula? What values for k are used? In particular, how are the terms a(1)-a(10) obtained using this formula? Using an inner loop for m and an outer loop for k, starting at m=1 and k=1, one obtains the infinite subsequence starting 11, 22, 33, 44, .... - _Felix Fröhlich_, Jul 26 2014

%C Answer, maybe: The formula is only supposed to produce the terms with more than one digit? - _N. J. A. Sloane_, Jul 27 2014

%H Harvey P. Dale, <a href="/A109882/b109882.txt">Table of n, a(n) for n = 1..1000</a>

%F The single-digit numbers, and then m*10^k + a where m is 1 to 9. [Revised by _N. J. A. Sloane_, Jul 27 2014]

%t Join[Range[0,9],10#+First[IntegerDigits[#]]&/@Flatten[Table[FromDigits[PadRight[{d},n,0]],{n,5},{d,9}]]] (* _Harvey P. Dale_, Oct 05 2023 *)

%K base,nonn

%O 1,3

%A _Amarnath Murthy_, Jul 10 2005

%E Corrected definition, fixed offset, extended. - _David Wasserman_, Oct 15 2008

%E 0 added and name changed by Arkadiusz Wesolowski, Sep 07 2011