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.

Previous Showing 11-20 of 158 results. Next

A246022 Prime sieve of Champernowne constant A033307.

Original entry on oeis.org

1, 4, 6, 10, 12, 1, 516, 18, 202122, 242, 28, 30, 3, 3, 6, 3, 94041, 444546, 4849, 52535455, 58, 60, 6, 646566, 686, 0, 72, 74, 78, 8, 848, 888990, 9495, 98, 0, 102, 104, 6, 108, 1, 112, 1141, 16, 201, 22, 26, 1, 29130, 3, 4, 6, 138, 1, 411, 44, 47148, 150, 531
Offset: 1

Views

Author

N. J. A. Sloane, Aug 14 2014

Keywords

Comments

Start with the decimal expansion of the Champernowne constant A033307:
12345678910111213141516171819202122232425262728293031323334353637383940\
4142434445464748495051525354555657...
Find the first occurrence of the prime 2 and replace it with a space:
1 3456789101112131415161718192021222324252627282930...
1 456789101112131415161718192021222324252627282930... Repeat the process with 3
1 4 6789101112131415161718192021222324252627282930... Then 5
1 4 6 89101112131415161718192021222324252627282930... Then 7
1 4 6 8910 12 141516 18 202122 24252627282930... Then 11, 13, 17, etc., until the first occurrence of every prime is eliminated. 89, 41, 52627, will disappear.
Then consolidate gaps between the remaining digits into a single comma:
1, 4, 6, 10, 12, 1, 516, 18, 202122, 242, 28, 30, 3, 3, 6, ...

Crossrefs

Suggested by A245770, A248804, A247861. Cf. A033307, A007376.

Extensions

More terms from Manfred Scheucher, Jun 05 2015

A340490 a(n) is the number of digits after the n-th digit of the Champernowne constant A033307 until the next appearance of that digit.

Original entry on oeis.org

9, 13, 14, 15, 16, 17, 18, 19, 20, 2, 20, 1, 1, 2, 15, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, 5, 20, 2, 20, 2, 20, 1, 1, 2, 13, 2, 20, 2, 20, 2, 20, 2, 20, 2, 20, 7, 20, 2, 20, 2, 20, 2, 20, 1, 1, 2, 11, 2, 20, 2, 20, 2, 20, 2, 20, 9, 20, 2, 20, 2, 20, 2
Offset: 1

Views

Author

Md. Towhidul Islam, Jan 10 2021

Keywords

Comments

In typing the positive integers without leaving spaces between them, it is interesting to see how many places later we press the same number key on the keyboard. This sequence answers that question.

Examples

			In concatenating the positive integers, we get 1 first. The next occurrence of 1 is in 10. So 1 occurs 9 places later, which gives a(1)=9. The second digit 2 occurs again in writing 12. So 2 occurs 13 places later and a(2) is 13.
		

Crossrefs

Cf. A033307 (the parent sequence).

Programs

  • PARI
    C(nn) = {my(list = List()); for (n=1, nn, my(d=digits(n)); for (k=1, #d, listput(list, d[k]););); list;} \\ A033307
    posi(list, i) = {for (j=i+1, #list, if (list[i] == list[j], return (j-i)););}
    lista(nn) = {my(list = C(nn)); my(listp = List()); for (i=1, #list, my(pos = posi(list, i)); if (! pos, break); listput(listp, pos);); Vec(listp);} \\ Michel Marcus, Jan 11 2021
    
  • Python
    def aupton(terms):
        alst, chapnk, k = [], [1], 1
        for n in range(1, terms+1):
            chapn = chapnk.pop(0)
            while chapn not in chapnk:
                k += 1
                chapnk.extend(list(map(int, str(k))))
            alst.append(chapnk.index(chapn) + 1)
        return alst
    print(aupton(74)) # Michael S. Branicky, Sep 13 2021

Formula

A033307(n - 1 + a(n)) = A033307(n - 1).

A342162 a(n) = difference between the starting positions of the first two occurrences of n in the Champernowne string (cf. A033307), where the first n is not required to be at its natural position.

Original entry on oeis.org

11, 9, 13, 14, 15, 16, 17, 18, 19, 20, 180, 1, 13, 37, 55, 73, 91, 109, 127, 145, 221, 17, 1, 34, 37, 55, 73, 91, 109, 127, 231, 35, 17, 1, 55, 37, 55, 73, 91, 109, 241, 53, 35, 17, 1, 76, 37, 55, 73, 91, 251, 71, 53, 35, 17, 1, 97, 37, 55, 73, 261, 89, 71, 53, 35, 17, 1, 118, 37, 55, 271, 107
Offset: 0

Views

Author

Scott R. Shannon, Mar 03 2021

Keywords

Comments

Consider the infinite string 01234567891011121314151617181920... (cf. A033307) formed by the concatenation of all decimal digits of all nonnegative numbers. From the position of the first digit of the first occurrence of the number n, which is not required to be at its natural position in the string, find the number of digits one has to move forward to get to the start of the second occurrence of n. This is a(n).
This sequence is similar to A337227 but here the first appearance of n can be anywhere in string. The first example where n appears before its natural position in the string is n = 12. See the examples.

Examples

			a(0) = 11 as the string '0' first appears at position 1 and again at position 12, giving a difference of 11.
a(10) = 180 as the string '10' first appears at position 11 and again at position 191 (where it forms the start of the number 100), giving a difference of 180.
a(12) = 13 as the string '12' first appears at position 2 (the first number to appear before its natural position) and again at position 15 (its natural position), giving a difference of 13. This is the first term to differ from A337227.
		

Crossrefs

Programs

  • Python
    from itertools import count
    def A342162(n):
        s1, s2, m = tuple(int(d) for d in str(n)), tuple(), -1
        l = len(s1)
        for i, s in enumerate(int(d) for k in count(0) for d in str(k)):
            s2 = (s2+(s,))[-l:]
            if s2 == s1:
                if m >= 0:
                    return i-m
                m = i # Chai Wah Wu, Feb 18 2022

A098729 Consider the sequence {b(n), n >= 1} of digits of the integers: 0 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0... (A033307); a(n) = b(n) + n.

Original entry on oeis.org

1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 12, 12, 14, 15, 16, 18, 18, 21, 20, 24, 22, 27, 24, 30, 26, 33, 28, 36, 30, 39, 33, 32, 35, 35, 37, 38, 39, 41, 41, 44, 43, 47, 45, 50, 47, 53, 49, 56, 51, 59, 54, 52, 56, 55, 58, 58, 60, 61, 62, 64, 64, 67, 66, 70, 68, 73, 70, 76, 72, 79, 75
Offset: 1

Views

Author

Alexandre Wajnberg, Sep 30 2004

Keywords

Comments

Add its rank to each digit of the counting numbers (beginning with 0).

Examples

			The sequence of digits of the integers is
0 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0...
The 15th term, for instance, is a 1. Thus 1+15=16 is the 15th term of this sequence.
Next one is 2 (the digit) + 16 (the rank) = 18
		

Programs

  • Mathematica
    dgs = Flatten[IntegerDigits/@Range[0, 50]]; Plus@@@Partition[Riffle[dgs, Range[Length[dgs]]], 2] (* Harvey P. Dale, Jan 15 2011 *)

Extensions

More terms from Joshua Zucker, May 18 2006

A098734 Consider the sequence {b(n), n >= 1} of digits of the integers: 0 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0... (A033307); a(n) = n*b(n).

Original entry on oeis.org

0, 2, 6, 12, 20, 30, 42, 56, 72, 90, 11, 0, 13, 14, 15, 32, 17, 54, 19, 80, 21, 110, 23, 144, 25, 182, 27, 224, 29, 270, 62, 0, 66, 34, 70, 72, 74, 114, 78, 160, 82, 210, 86, 264, 90, 322, 94, 384, 98, 450, 153, 0, 159, 54, 165, 112, 171, 174, 177, 240, 183, 310, 189, 384
Offset: 1

Views

Author

Alexandre Wajnberg, Sep 30 2004

Keywords

Crossrefs

Cf. A098727, etc.

Extensions

More terms from Emeric Deutsch, Jul 13 2005

A337159 Lexicographically earliest sequence of distinct nonnegative integers such that for any n >= 0, A033307(n + a(n)) = A033307(n).

Original entry on oeis.org

0, 13, 14, 15, 16, 17, 18, 19, 20, 2, 40, 1, 3, 4, 21, 6, 33, 8, 51, 53, 60, 11, 80, 9, 100, 7, 120, 5, 140, 10, 160, 12, 157, 41, 163, 39, 23, 37, 31, 35, 49, 73, 67, 71, 85, 29, 103, 27, 121, 47, 141, 25, 137, 43, 143, 61, 144, 59, 145, 57, 45, 55, 63, 93
Offset: 0

Views

Author

Rémy Sigrist, Jan 30 2021

Keywords

Comments

This sequence is a permutation of the nonnegative integers: repunits induce runs of consecutive equal terms of arbitrary size in A033307, thus allowing any value to eventually occur.

Crossrefs

Programs

  • PARI
    See Links section.
    
  • Python
    def aupton(terms):
      alst, A033307, last, used, n, an = [], '1', 1, set(), 0, 0
      while n <= terms:
        while an in used: an += 1
        while len(A033307) <= n + an: last += 1; A033307 += str(last)
        if A033307[n + an] == A033307[n]:
          alst += [an]; used.add(an); n += 1; an = 0
        else: an += 1
      return alst
    print(aupton(63)) # Michael S. Branicky, Jan 30 2021

A365237 Decimal expansion of 1/A033307 (decimal Champernowne constant).

Original entry on oeis.org

8, 1, 0, 0, 0, 0, 0, 0, 6, 7, 0, 7, 6, 0, 3, 3, 6, 1, 3, 3, 0, 7, 3, 1, 9, 6, 7, 3, 8, 3, 4, 1, 6, 7, 8, 7, 7, 5, 3, 5, 8, 3, 6, 4, 7, 3, 4, 7, 8, 5, 7, 9, 7, 2, 2, 5, 2, 5, 0, 9, 8, 1, 9, 8, 1, 0, 0, 3, 9, 9, 9, 5, 4, 5, 1, 7, 3, 6, 1, 6, 0, 6, 8, 2, 9, 7, 2, 1, 7, 3, 5, 8, 9, 5, 7, 1, 2, 2, 2, 6, 1, 7, 7, 7, 1, 6, 1
Offset: 1

Views

Author

Kelvin Voskuijl, Aug 27 2023

Keywords

Comments

Appears to coincide with A090903 from the 10th digit onwards.

Examples

			8.10000006707603361330731967383416787753583647347857972252510...
		

Crossrefs

Cf. A030167 (continued fraction).
Cf. A365238 (reciprocal of binary Champernowne constant).

Programs

  • Mathematica
    RealDigits[1/ChampernowneNumber[10] , 10, 120][[1]]

A096166 Engel expansion of the Champernowne number .1234567891011121314151617181920212223... (see A033307).

Original entry on oeis.org

9, 10, 10, 10, 10, 10, 10, 10, 53, 82, 112, 127, 341, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496
Offset: 1

Views

Author

Gerald McGarvey, Jul 25 2004

Keywords

Examples

			0.123456789101112...= 1/9+1/(9*10)+1/(9*10*10)+1/(9*10*10*10)+... .
		

Crossrefs

Cf. A033307.

Extensions

Edited by N. J. A. Sloane, Apr 14 2008

A232360 A walk based on the digits of Champernowne constant C (A033307).

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 1, 1, 2, 1, 2, 3, 2, 1, 2, 3, 4, 3, 2, 1, 2, 3, 4, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8
Offset: 1

Views

Author

Philippe Deléham, Nov 23 2013

Keywords

Comments

C = 0,12345678910111213141516171819202122...
Between 0 and 1 we place nothing.
Between 1 and 2 we place nothing.
Between 2 and 3 we place nothing.
Between 3 and 4 we place nothing.
Between 4 and 5 we place nothing.
Between 5 and 6 we place nothing.
Between 6 and 7 we place nothing.
Between 7 and 8 we place nothing.
Between 8 and 9 we place nothing.
Between 9 and 1 we place 8, 7, 6, 5, 4, 3 and 2.
....
Between 1 and 3 we place 2.
Between 3 and 1 we place 2, and so on.
This gives:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, ...
This could be called a walk (or promenade) on the digits of C.

Crossrefs

A350208 Given the sequence of the digits of the Champernowne constant A033307 we start with number 1 and advance as many digits as the number that it indicates. If the digit is 0 then advance 10 positions.

Original entry on oeis.org

1, 2, 4, 8, 1, 3, 1, 5, 1, 8, 2, 3, 2, 2, 2, 2, 2, 3, 1, 3, 3, 3, 6, 9, 4, 4, 4, 5, 2, 3, 5, 7, 6, 6, 6, 7, 3, 7, 8, 2, 3, 8, 8, 9, 7, 0, 1, 0, 7, 1, 1, 0, 1, 1, 4, 1, 1, 6, 8, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 1, 1, 4, 3, 4, 1, 4
Offset: 1

Views

Author

Rodolfo Kurchan, Dec 19 2021

Keywords

Comments

Computer solutions by Claudio Meller.
What is the percentage of each digit in this sequence?

Examples

			a(4) = 8, then 8 positions along in sequence A033307 reaches digit 1 (first 1 of 13) so a(5) = 1.
a(5) = 1, then 1 position along in sequence A033307 reaches digit 3 (of number 13) so a(6) = 3.
The terms of A033307 and those which become the terms here begin
  1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 ...
  ^ ^   ^       ^               ^ ^     ^ ^
		

Crossrefs

Cf. A033307.
Previous Showing 11-20 of 158 results. Next