cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A383249 Positive integers ending with the digit 1, or containing an odd digit d immediately followed by a digit >= d.

Original entry on oeis.org

1, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 31, 33, 34, 35, 36, 37, 38, 39, 41, 51, 55, 56, 57, 58, 59, 61, 71, 77, 78, 79, 81, 91, 99, 101, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135
Offset: 1

Views

Author

Paolo Xausa, Apr 26 2025

Keywords

Comments

Conjecture: these are the numbers missing from A342045.
By way of disjointness and completeness, it is proved that this sequence is the complement of A342045. - Quinn Savitt, Apr 29 2025

Crossrefs

Programs

  • Mathematica
    A383249Q[k_] := Last[#] == 1 || MemberQ[Partition[#, 2, 1], {i_?OddQ, j_} /; j >= i] & [IntegerDigits[k]];
    Select[Range[200], A383249Q]
  • Python
    def ok(n):
        if n%10 == 1: return True
        s = str(n)
        return any(d in "13579" and s[i]>=d for i, d in enumerate(s, 1) if i < len(s))
    print([k for k in range(136) if ok(k)]) # Michael S. Branicky, Apr 28 2025