OFFSET
1,3
COMMENTS
In other words, numbers that do not contain a pair of successive digits i, j where i is even and j <= i.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
Sela Fried, Even-up words and their variants, arXiv:2505.14196 [math.CO], 2025.
MATHEMATICA
A377912Q[k_] := FreeQ[Partition[IntegerDigits[k], 2, 1], {i_?EvenQ, j_} /; j <= i];
Select[Range[0, 200], A377912Q] (* Paolo Xausa, Mar 17 2025 *)
PROG
(Python)
def ok(n):
s = str(n)
return not any(s[i] in "2468" and s[i+1] <= s[i] for i in range(len(s)-1))
print([k for k in range(0, 118) if ok(k)]) # Michael S. Branicky, Nov 28 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Nov 27 2024, with thanks to Paolo Xausa for correcting the initial definition
EXTENSIONS
Added 0 to match A342042, and replaced negative definition by a positive one. - N. J. A. Sloane, Nov 29 2024
STATUS
approved
