OFFSET
1,2
COMMENTS
Conjecture: these are the terms of A342045, sorted.
From Quinn Savitt, Apr 29 2025: (Start)
Theorem: These are the terms of A342045, sorted.
The proof formally defines an extendibility condition: a finite set of selected numbers remains extendible if, for every finite subset, there exists a new number satisfying the "odd digit implies next smaller digit" rule and not ending in 1.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
Quinn Savitt, Formal proof that A383250 = sorted(A342045)
MATHEMATICA
A383250Q[k_] := Last[#] != 1 && FreeQ[Partition[#, 2, 1], {i_?OddQ, j_} /; j >= i] & [IntegerDigits[k]];
Select[Range[0, 200], A383250Q]
PROG
(Python)
def ok(n):
if n%10 == 1: return False
s = str(n)
return all(d in "02468" or s[i]<d for i, d in enumerate(s, 1) if i < len(s))
print([k for k in range(104) if ok(k)]) # Michael S. Branicky, Apr 28 2025
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo Xausa, Apr 26 2025
STATUS
approved
