OFFSET
1,2
COMMENTS
Concatenation of all but final digits of n with reverse of n (keeping leading zeros in the reverse)
A178788(a(n)) = 0 for n > 9. [From Reinhard Zumkeller, Jun 30 2010]
LINKS
MATHEMATICA
Join[Range[9], Table[FromDigits[Join[x=IntegerDigits[n], Reverse[Drop[x, -1]]]], {n, 10, 56}]] (* Jayanta Basu, May 29 2013 *)
Select[Flatten[Table[Range[10^n, 10^(n+1)-1], {n, 0, 2, 2}]], PalindromeQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 21 2020 *)
PROG
(Haskell)
a056525 n = a056525_list !! (n-1)
a056525_list = [1..9] ++ [read (ns ++ [z] ++ reverse ns) |
n <- [1..], let ns = show n, z <- "0123456789"]
-- Reinhard Zumkeller, Dec 28 2011
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Henry Bottomley, Jun 16 2000
STATUS
approved