OFFSET
1,3
COMMENTS
For n>9 the structure of digits represents a crater. The first and last digit of each term are identical. The first digits are in consecutive decreasing order. The last digits are in consecutive increasing order. The numbers have only one smallest digit. The number of digits is odd. This sequence is finite with 55 terms. The final term is 9876543210123456789.
Finite subset of primes of this sequence: 2, 3, 5, 7, 101, 7654567.
There are 11 - k terms with 2*k - 1 digits. - Omar E. Pol, Aug 04 2011
EXAMPLE
Illustration using a(32)=7654567:
7 . . . . . 7
. 6 . . . 6 .
. . 5 . 5 . .
. . . 4 . . .
MATHEMATICA
Flatten[Table[FromDigits/@(Join[Reverse[Rest[#]], #]&/@Partition[ Range[ 0, 9], n, 1]), {n, 10}]] (* Harvey P. Dale, Dec 27 2018 *)
PROG
(Python)
ups = [tuple(range(i, j)) for i in range(10) for j in range(i+1, 11)]
afull = sorted(int("".join(map(str, u[::-1] + u[1:]))) for u in ups)
print(afull) # Michael S. Branicky, Aug 02 2022
CROSSREFS
KEYWORD
base,fini,full,nonn
AUTHOR
Jaroslav Krizek, Jul 25 2011
EXTENSIONS
Corrected and extended by Jaroslav Krizek, Jul 27 2011
STATUS
approved