login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A347298
Numbers that contain an even digit d immediately followed by a digit <= d.
3
20, 21, 22, 40, 41, 42, 43, 44, 60, 61, 62, 63, 64, 65, 66, 80, 81, 82, 83, 84, 85, 86, 87, 88, 100, 120, 121, 122, 140, 141, 142, 143, 144, 160, 161, 162, 163, 164, 165, 166, 180, 181, 182, 183, 184, 185, 186, 187, 188, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215
OFFSET
1,1
COMMENTS
Conjecture: This is precisely the list of numbers missing from A342042.
The conjecture is correct, see A342042 for details. - Sebastian Karlsson, Oct 02 2021
MATHEMATICA
A347298Q[k_] := Count[Partition[IntegerDigits[k], 2, 1], {i_, j_} /; EvenQ[i] && j <= i] > 0;
Select[Range[300], A347298Q] (* Paolo Xausa, Nov 28 2024 *)
PROG
(Python)
def ok(n):
s = str(n)
return any(s[i] in "2468" and s[i+1] <= s[i] for i in range(len(s)-1))
print([k for k in range(216) if ok(k)]) # Michael S. Branicky, Nov 28 2024
CROSSREFS
Cf. A342042, A377912 (complement).
Sequence in context: A133895 A138602 A346400 * A326678 A347469 A030605
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Aug 26 2021
STATUS
approved