OFFSET
1,2
COMMENTS
Also, palindromic valley numbers, or palindromes in A193413. - Michael S. Branicky, Feb 01 2026
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
EXAMPLE
After 111 the next term is 202 and not 121, 131, up to 191.
From Alexander Yutkin, Feb 02 2026: (Start)
Illustration using number 54332223345:
. . . . . . . . . . .
5 . . . . . . . . . 5
. 4 . . . . . . . 4 .
. . 3 3 . . . 3 3 . .
. . . . 2 2 2 . . . .
. . . . . . . . . . .
(End)
MATHEMATICA
A110785Q[k_] := PalindromeQ[#] && (Length[#] <= 2 || Max[Differences[#[[;; Ceiling[Length[#]/2]]]]] <= 0) & [IntegerDigits[k]];
Select[Range[2000], A110785Q] (* Paolo Xausa, Jul 31 2025, corrected on Feb 01 2026 *)
PROG
(Python)
def ok(n): return (s:=str(n)) == s[::-1] and (h:=s[:(len(s)+1)//2]) == "".join(sorted(h, reverse=True))
print([k for k in range(1, 850) if ok(k)]) # Michael S. Branicky, Feb 01 2026
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Aug 12 2005
STATUS
approved
