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

A057139
Odd number of digits palindrome based on sequential digits.
5
1, 121, 12321, 1234321, 123454321, 12345654321, 1234567654321, 123456787654321, 12345678987654321, 1234567890987654321, 123456789010987654321, 12345678901210987654321, 1234567890123210987654321, 123456789012343210987654321, 12345678901234543210987654321
OFFSET
1,2
LINKS
FORMULA
a(n) = 10^n*A057137(n-1) + A057138(n) = 10^(n-1)*A057137(n) + A057138(n-1).
MATHEMATICA
Array[FromDigits@ Join[#, Reverse@ Most@ #] &@ Mod[Range[#], 10] &, 15] (* Michael De Vlieger, Jan 28 2020 *)
PROG
(PARI) a(n)={fromdigits(vector(2*n-1, i, if(i<=n, i, 2*n-i)%10))} \\ Andrew Howroyd, Jan 27 2020
CROSSREFS
Alternative progression for n >= 10 compared with A002477.
Sequence in context: A079215 A137466 A062689 * A321687 A002477 A173426
KEYWORD
base,easy,nonn
AUTHOR
Henry Bottomley, Aug 12 2000
EXTENSIONS
Terms a(13) and beyond from Andrew Howroyd, Jan 27 2020
STATUS
approved