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
MATHEMATICA
A377912Q[k_] := Count[Partition[IntegerDigits[k], 2, 1], {i_, j_} /; EvenQ[i] && j <= i] == 0;
Select[Range[0, 300], A377912Q] (* Paolo Xausa, Nov 28 2024 *)
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,new
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