OFFSET
1,3
COMMENTS
All terms have odd number of digits. Terms are palindromes such that digits are nondecreasing halfway through except for the middle digit, which is strictly smaller than its neighboring digits.
Illustration using a term of this sequence, 23446564432:
. . . . 6 . 6 . . . .
. . . . . 5 . . . . .
. . 4 4 . . . 4 4 . .
. 3 . . . . . . . 3 .
2 . . . . . . . . . 2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
PROG
(Python)
from itertools import combinations_with_replacement as mc
def agentod(digits):
yield from range(10)
for d in range(3, digits+1, 2):
for left in mc("123456789", d//2):
for center in range(int(left[-1])):
yield int("".join(left + (str(center), ) + left[::-1]))
print([an for an in agentod(5)]) # Michael S. Branicky, Aug 21 2021
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Chai Wah Wu, Dec 25 2015
STATUS
approved