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.

Showing 1-5 of 5 results.

A342042 When a digit d in the digit-stream of this sequence is even, the next digit is > d.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 30, 13, 14, 50, 15, 16, 70, 17, 18, 90, 19, 23, 24, 51, 25, 26, 71, 27, 28, 91, 29, 31, 32, 33, 34, 52, 35, 36, 72, 37, 38, 92, 39, 45, 46, 73, 47, 48, 93, 49, 53, 54, 55, 56, 74, 57, 58, 94, 59, 67, 68, 95, 69, 75, 76, 77, 78, 96, 79, 89, 97, 98, 99, 101
Offset: 1

Views

Author

Eric Angelini, Feb 26 2021

Keywords

Comments

The definition refers to the digit-stream in the sequence (ignoring the commas), which starts 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 0, 1, 1, 1, 2, 3, 0, ...
The sequence is always extended with the smallest nonnegative integer not yet present that doesn't lead to a contradiction.
Theorem: The sequence contains every nonnegative integer except those in A347298.
Proved in September 2021. See S.K. link for a new, more detailed proof. - Sebastian Karlsson, Nov 28 2024. See N.J.A.S. link for an alternative, shorter, proof. - N. J. A. Sloane, Nov 29 2024
Comments added by N. J. A. Sloane, Dec 04 2024 (Start):
Let S = present sequence, P = A377912. By definition the terms in P appear in their natural order. There are A377917(k) terms in P of decimal length k >= 1. They form a consecutive block in P, starting at P(i1) and ending at P(i2), where i1 = A377918(k), i2 = A377918(k+1)-1.
We know S contains exactly the same terms as P, but in a different order.
Conjecture 1. For k >= 1, the terms of length k in S form a consecutive block with the same starting and ending points as in P. In both P and S, the block begins with 10101... (1's and 0's alternate, length is k) and end with 99...9 (k 9's).
Conjecture 2. We know every number appears in S. Suppose x = S(m) = 899...9 (with k-1 9's). Then x is the last term of length k in S that begins with a digit <= 8. The remaining terms of length k have leading digit 9 and appear in order, ending with 99...9 (k 9's).
(Some k-digit numbers beginning with 9 may appear before x.)
(End)
Comment from N. J. A. Sloane, Dec 01 2024 (Start)
Let c1 = 7.422574840... and c2 = 1.3824387... be the constants defined in A377918. Then assuming Conjecture 1, the index of the last term of length k in the present sequence is close to (c2*c1^k, 10^k). [Thanks to Sebastian Karlsson for pointing out that Conjecture 1 is required and is as yet unproved.]
Let x = c2*c1^k, and express k in terms of x.
Then this point has coordinates (x,y) where y = (x/c2)^c3, with c3 = (log 10)/(log c1) = 1.14869... This defines a curve that is a good approximation to the lower envelope of the present sequence.
For example, the fifth meeting point has coordinates (31148, 101010) (see A377918) and the formula here gives (x,y) = (31148, 100003.0039).
(End)
Comment from Sebastian Karlsson, Dec 12 2024: (Start)
Theorem: Let d be in {1, 2, ..., 8}. For every positive integer k, the k-digit number d99...9 appears in the sequence before the k-digit number (d+1)99...9.
A proof can be found in the links. Since all k-digit numbers starting with 9 appears before any (k+1)-digit number, we get that terms of a certain length form a consecutive block. In particular, this proves Conjectures 1 and 2 above.
(End)

Crossrefs

Cf. A342043, A342044, A342045, A342046 and A342047 (variations on the same idea).
See A377913 and A377914 for records.
See also A347298.

Programs

  • PARI
    \\ See Links section.
    
  • Python
    def cond(s, minfirst):
        return all(s[i+1] > s[i] for i in range(len(s)-1) if s[i] in "02468")
    def aupton(terms):
        alst, seen = [0], {0}
        while len(alst) < terms:
            d = alst[-1]%10
            an = minfirst = (1 - d%2)*(d+1)
            stran = str(an)
            while an in seen or not cond(stran, minfirst):
                an += 1
                stran = str(an)
                if int(stran[0]) < minfirst:
                    an = minfirst*10**(len(stran)-1)
            alst.append(an); seen.add(an)
        return alst
    print(aupton(77)) # Michael S. Branicky, Sep 07 2021

Extensions

Edited by N. J. A. Sloane, Nov 24 2024

A342043 When a digit d is even, the next digit is < d.

Original entry on oeis.org

1, 2, 11, 3, 4, 12, 13, 5, 6, 14, 15, 7, 8, 16, 17, 9, 18, 19, 21, 31, 32, 111, 33, 34, 35, 36, 37, 38, 39, 41, 42, 112, 113, 43, 51, 52, 114, 115, 53, 54, 116, 55, 56, 57, 58, 59, 61, 62, 117, 63, 64, 118, 65, 71, 72, 119, 73, 74, 121, 75, 76, 131, 77, 78, 79, 81, 82, 132, 133, 83, 84, 134, 135, 85
Offset: 1

Views

Author

Eric Angelini, Feb 26 2021

Keywords

Comments

The sequence is always extended with the smallest positive integer not yet present that doesn't lead to a contradiction.
No digit 0 is present in the sequence (as 0, being even, would block it).

Crossrefs

Cf. A342042, A342044, A342045, A342046 and A342047 (variations on the same idea).

Programs

  • PARI
    See Links section.

A342044 When a digit d is odd, the next digit is > d.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 13, 40, 14, 15, 60, 16, 17, 80, 18, 20, 21, 22, 23, 41, 24, 25, 61, 26, 27, 81, 28, 34, 35, 62, 36, 37, 82, 38, 42, 43, 44, 45, 63, 46, 47, 83, 48, 56, 57, 84, 58, 64, 65, 66, 67, 85, 68, 78, 86, 87, 88, 120, 121, 200, 122, 123, 400, 124, 125, 600, 126, 127, 800, 128
Offset: 1

Views

Author

Eric Angelini, Feb 26 2021

Keywords

Comments

The sequence is always extended with the smallest positive integer not yet present that doesn't lead to a contradiction.
No digit 9 is present in the sequence (as 9, being odd, would block it).

Crossrefs

Cf. A342042, A342043, A342045, A342046 and A342047 (variations on the same idea).

Programs

  • PARI
    See Links section.

A342045 When a digit d is odd, the next digit is < d.

Original entry on oeis.org

0, 2, 3, 10, 4, 5, 20, 6, 7, 22, 8, 9, 23, 24, 25, 26, 27, 28, 29, 30, 32, 40, 42, 43, 100, 44, 45, 46, 47, 48, 49, 50, 52, 53, 102, 54, 60, 62, 63, 103, 104, 64, 65, 105, 106, 66, 67, 68, 69, 70, 72, 73, 107, 108, 74, 75, 109, 76, 80, 82, 83, 200, 84, 85, 202, 86, 87, 203, 204, 88, 89, 205, 206, 90, 92, 93
Offset: 1

Views

Author

Eric Angelini, Feb 26 2021

Keywords

Comments

After a(1) = 0, the sequence is always extended with the smallest positive integer not yet present that doesn't lead to a contradiction.
No term ends in 1 (as this 1 would block the sequence).

Crossrefs

Cf. A342042, A342043, A342044, A342046 and A342047 (variations on the same idea).

Programs

  • PARI
    See Links section.

A342046 When a digit d is prime, the next digit is > d.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 34, 13, 40, 14, 15, 60, 16, 17, 80, 18, 19, 23, 41, 24, 25, 61, 26, 27, 81, 28, 29, 35, 62, 36, 37, 82, 38, 39, 42, 43, 44, 45, 63, 46, 47, 83, 48, 49, 56, 57, 84, 58, 59, 64, 65, 66, 67, 85, 68, 69, 78, 79, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
Offset: 1

Views

Author

Eric Angelini, Feb 26 2021

Keywords

Comments

After a(1) = 0, the sequence is always extended with the smallest positive integer not yet present that doesn't lead to a contradiction.

Crossrefs

Cf. A342042, A342043, A342044, A342045 and A342047 (variations on the same idea).

Programs

  • PARI
    See Links section.
Showing 1-5 of 5 results.