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 21-30 of 32 results. Next

A031035 Write n in base 8 and juxtapose.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

Apart from the initial term, identical to A054634.
Should not be merged with A054634 because there are many sequences which depend on this sequence starting with a 1. - N. J. A. Sloane, Jan 30 2010
An irregular table in which the n-th row lists the base-8 digits of n. - Jason Kimberley, Dec 07 2012
The base-8 Champernowne constant: it is normal in base 8. - Jason Kimberley, Dec 07 2012

Crossrefs

Tables in which the n-th row lists the base b digits of n: A030190 and A030302 (b=2), A003137 and A054635 (b=3), A030373 (b=4), A031219 (b=5), A030548 (b=6), A030998 (b=7), this sequence and A054634 (b=8), A031076 (b=9), A007376 and A033307 (b=10). - Jason Kimberley, Dec 06 2012
Cf. A007094.

Programs

  • Magma
    &cat[Reverse(IntegerToSequence(n,8)):n in[1..31]]; // Jason Kimberley, Dec 07 2012
    
  • Maple
    seq(op(ListTools:-Reverse(convert(n,base,8))),n=1..100); # Robert Israel, Nov 12 2024
  • Mathematica
    Flatten[ IntegerDigits[ Range[40], 8]] (* or *)
    almostNatural[n_, b_] := Block[{m = 0, d = n, i = 1, l, p}, While[m <= d, l = m; m = (b - 1) i*b^(i - 1) + l; i++]; i--; p = Mod[d - l, i]; q = Floor[(d - l)/i] + b^(i - 1); If[p != 0, IntegerDigits[q, b][[p]], Mod[q - 1, b]]]; Array[ almostNatural[#, 8] &, 105] (* Robert G. Wilson v, Jun 29 2014 *)
  • Python
    from itertools import count, islice
    from sympy.ntheory.factor_ import digits
    def A031035_gen(): return (d for m in count(1) for d in digits(m,8)[1:])
    A031035_list = list(islice(A031035_gen(),30)) # Chai Wah Wu, Jan 07 2022

A054634 Champernowne sequence: write n in base 8 and juxtapose.

Original entry on oeis.org

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

Views

Author

N. J. A. Sloane, Apr 16 2000

Keywords

Comments

Apart from the initial term, identical to A031035.
Should not be merged with A031035 because there are many sequences which depend on the latter starting with a 1. - N. J. A. Sloane, Jan 30 2010
An irregular table in which the n-th row lists the base-8 digits of n. - Jason Kimberley, Dec 07 2012
The base-8 Champernowne constant: it is normal in base 8. - Jason Kimberley, Dec 07 2012

Crossrefs

Tables in which the n-th row lists the base b digits of n: A030190 and A030302 (b=2), A003137 and A054635 (b=3), A030373 (b=4), A031219 (b=5), A030548 (b=6), A030998 (b=7), A031035 and this sequence (b=8), A031076 (b=9), A007376 and A033307 (b=10). - Jason Kimberley, Dec 06 2012

Programs

  • Magma
    [0]cat &cat[Reverse(IntegerToSequence(n,8)):n in[1..31]]; // Jason Kimberley, Dec 07 2012
    
  • Mathematica
    Flatten[ IntegerDigits[ Range[0, 40], 8]] (* or *)
    almostNatural[n_, b_] := Block[{m = 0, d = n, i = 1, l, p}, While[m <= d, l = m; m = (b - 1) i*b^(i - 1) + l; i++]; i--; p = Mod[d - l, i]; q = Floor[(d - l)/i] + b^(i - 1); If[p != 0, IntegerDigits[q, b][[p]], Mod[q - 1, b]]]; Array[ almostNatural[#, 8] &, 105, 0] (* Robert G. Wilson v, Jun 29 2014 *)
  • Python
    from itertools import count, chain, islice
    from sympy.ntheory.factor_ import digits
    def A054634_gen(): return chain.from_iterable(digits(m, 8)[1:] for m in count(0))
    A054634_list = list(islice(A054634_gen(), 30)) # Chai Wah Wu, Jan 07 2022

A031087 Triangle T(n,k): write n in base 9, reverse order of digits.

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

Cf. A030308, A030341, A030386, A031235, A030567, A031007, A031045, A031298 for the base-2 to base-10 analogs.

Programs

  • Haskell
    a031087 n k = a031087_row n !! (k-1)
    a031087_row n | n < 9     = [n]
                  | otherwise = m : a031087_row n' where (n',m) = divMod n 9
    a031087_tabf = map a031087_row [0..]
    -- Reinhard Zumkeller, Jul 07 2015
  • PARI
    A031087(n, k=-1)=/*k<0&&error("Flattened sequence not yet implemented.")*/n\9^k%9 \\ Assuming that columns are numbered starting with k=0 as in A030308, A030567 and others. - M. F. Hasler, Jul 21 2013
    

Extensions

Initial 0 and better name by Philippe Deléham, Oct 20 2011

A054635 Champernowne sequence: write n in base 3 and juxtapose.

Original entry on oeis.org

0, 1, 2, 1, 0, 1, 1, 1, 2, 2, 0, 2, 1, 2, 2, 1, 0, 0, 1, 0, 1, 1, 0, 2, 1, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 0, 1, 2, 1, 1, 2, 2, 2, 0, 0, 2, 0, 1, 2, 0, 2, 2, 1, 0, 2, 1, 1, 2, 1, 2, 2, 2, 0, 2, 2, 1, 2, 2, 2, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 2, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 2, 1, 0, 2, 0, 1, 0, 2, 1
Offset: 0

Views

Author

N. J. A. Sloane, Apr 16 2000

Keywords

Comments

Essentially the same as A003137. - R. J. Mathar, Aug 29 2009
An irregular table in which the n-th row lists the base-3 digits of n. - Jason Kimberley, Dec 07 2012
The base-3 Champernowne constant (A077771): it is normal in base 3. - Jason Kimberley, Dec 07 2012

Crossrefs

Cf. A054637 (partial sums).
Cf. A081604 (row lengths), A053735 (row sums), A030341 (rows reversed), A007089, A077771.
Table in which the n-th row lists the base b digits of n: A030190 and A030302 (b=2), A003137 and this sequence (b=3), A030373 (b=4), A031219 (b=5), A030548 (b=6), A030998 (b=7), A031035 and A054634 (b=8), A031076 (b=9), A007376 and A033307 (b=10). - Jason Kimberley, Dec 06 2012

Programs

  • Haskell
    a054635 n k = a054635_tabf !! n !! k
    a054635_row n = a054635_tabf !! n
    a054635_tabf = map reverse a030341_tabf
    a054635_list = concat a054635_tabf
    -- Reinhard Zumkeller, Feb 21 2013
    
  • Magma
    [0]cat &cat[Reverse(IntegerToSequence(n,3)):n in[1..31]]; // Jason Kimberley, Dec 07 2012
    
  • Mathematica
    almostNatural[n_, b_] := Block[{m = 0, d = n, i = 1, l, p}, While[m <= d, l = m; m = (b - 1) i*b^(i - 1) + l; i++]; i--; p = Mod[d - l, i]; q = Floor[(d - l)/i] + b^(i - 1); If[p != 0, IntegerDigits[q, b][[p]], Mod[q - 1, b]]]; Array[ almostNatural[#, 3] &, 105, 0] (* Robert G. Wilson v, Jun 29 2014 *)
    First[RealDigits[ChampernowneNumber[3], 3, 100, 0]] (* Paolo Xausa, Jun 19 2024 *)
  • Python
    from sympy.ntheory.digits import digits
    def agen(limit):
        for n in range(limit):
            yield from digits(n, 3)[1:]
    print([an for an in agen(35)]) # Michael S. Branicky, Sep 01 2021

A378350 Continued fraction expansion of the base 9 Champernowne constant.

Original entry on oeis.org

0, 7, 8, 1, 10222, 1, 1, 1, 1, 1, 12, 1, 1, 1, 145, 1, 13127841267973253934598674824559230051317913195904874825561053745645554655306632773083671838234108227370808367172269493508107, 1, 7, 3, 1, 1, 1, 2, 2, 15, 3, 2, 1, 3, 2, 1, 1, 7, 4, 1, 4, 1, 1, 3, 3, 1, 1
Offset: 0

Views

Author

Joshua Searle, Dec 14 2024

Keywords

Crossrefs

Cf. A031076 (base 9 expansion), A378333 (decimal expansion).
Other continued fractions: A066717, A077772, A378345, A378346, A378347, A378348, A378349, A030167.

Programs

  • Mathematica
    ContinuedFraction[ChampernowneNumber[9], 100]

A378328 Decimal expansion of the base 4 Champernowne constant.

Original entry on oeis.org

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

Views

Author

Joshua Searle, Nov 23 2024

Keywords

Comments

This constant is formed by the concatenation of the natural numbers in base 4 and then converted into base 10.
This constant is 4-normal.

Examples

			0.426111111111111065764556571420161985095546238967230410682791635172587553...
		

Crossrefs

Cf. A030302, A003137, A030373, A031219, A030548, A030998, A054634, A031076, A033307 (base n expansions of base n Champernowne constants, without leading zero, for 2 <= n <= 10).
Cf. A066716, A077771, A378328, A378329, A378330, A378331, A378332, A378333, A033307 (decimal expansions of base n Champernowne constants for 2 <= n <= 10).
Cf. A066717, A077772, A378345, A378346, A378347, A378348, A378349, A378350, A030167 (continued fraction expansions of base n Champernowne constants for 2 <= n <= 10).

Programs

  • Mathematica
    First[RealDigits[ChampernowneNumber[4], 10, 100]]

A378329 Decimal expansion of the base 5 Champernowne constant.

Original entry on oeis.org

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

Views

Author

Joshua Searle, Nov 23 2024

Keywords

Comments

This constant is formed by the concatenation of the natural numbers in base 5 and then converted into base 10.
This constant is 5-normal.

Examples

			0.310736111111111111111111111110963033311604944849115504682622268470343392...
		

Crossrefs

Cf. A030302, A003137, A030373, A031219, A030548, A030998, A054634, A031076, A033307 (base n expansions of base n Champernowne constants, without leading zero, for 2 <= n <= 10).
Cf. A066716, A077771, A378328, A378329, A378330, A378331, A378332, A378333, A033307 (decimal expansions of base n Champernowne constants for 2 <= n <= 10).
Cf. A066717, A077772, A378345, A378346, A378347, A378348, A378349, A378350, A030167 (continued fraction expansions of base n Champernowne constants for 2 <= n <= 10).

Programs

  • Mathematica
    First[RealDigits[ChampernowneNumber[5], 10, 100]]

A378330 Decimal expansion of the base 6 Champernowne constant.

Original entry on oeis.org

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

Views

Author

Joshua Searle, Nov 23 2024

Keywords

Comments

This constant is formed by the concatenation of the natural numbers in base 6 and then converted into base 10.
This constant is 6-normal.

Examples

			0.239862685815066767447719828672209624590576971529350213760693195631576583...
		

Crossrefs

Cf. A030302, A003137, A030373, A031219, A030548, A030998, A054634, A031076, A033307 (base n expansions of base n Champernowne constants, without leading zero, for 2 <= n <= 10).
Cf. A066716, A077771, A378328, A378329, A378330, A378331, A378332, A378333, A033307 (decimal expansions of base n Champernowne constants for 2 <= n <= 10).
Cf. A066717, A077772, A378345, A378346, A378347, A378348, A378349, A378350, A030167 (continued fraction expansions of base n Champernowne constants for 2 <= n <= 10).

Programs

  • Mathematica
    First[RealDigits[ChampernowneNumber[6], 10, 100]]

A378331 Decimal expansion of the base 7 Champernowne constant.

Original entry on oeis.org

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

Views

Author

Joshua Searle, Nov 25 2024

Keywords

Comments

This constant is formed by the concatenation of the natural numbers in base 7 and then converted into base 10.
This constant is 7-normal.

Examples

			0.194435535086240521475840093082908576452932971050422112479588531233679088...
		

Crossrefs

(base n expansions of base n Champernowne constants, without leading zero, for 2 <= n <= 10).
Cf. A066716, A077771, A378328, A378329, A378330, A378331, A378332, A378333, A033307 (decimal expansions of base n Champernowne constants for 2 <= n <= 10).
Cf. A066717, A077772, A378345, A378346, A378347, A378348, A378349, A378350, A030167 (continued fraction expansions of base n Champernowne constants for 2 <= n <= 10).

Programs

  • Mathematica
    First[RealDigits[ChampernowneNumber[7], 10, 100]]

A378332 Decimal expansion of the base 8 Champernowne constant.

Original entry on oeis.org

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

Views

Author

Joshua Searle, Nov 25 2024

Keywords

Comments

This constant is formed by the concatenation of the natural numbers in base 8 and then converted into base 10.
This constant is 8-normal.

Examples

			0.163264812105216797367094986142605190224237843285462333081380700428319475...
		

Crossrefs

Cf. A030302, A003137, A030373, A031219, A030548, A030998, A054634, A031076, A033307 (base n expansions of base n Champernowne constants, without leading zero, for 2 <= n <= 10).
Cf. A066716, A077771, A378328, A378329, A378330, A378331, A378332, A378333, A033307 (decimal expansions of base n Champernowne constants for 2 <= n <= 10).
Cf. A066717, A077772, A378345, A378346, A378347, A378348, A378349, A378350, A030167 (continued fraction expansions of base n Champernowne constants for 2 <= n <= 10).

Programs

  • Mathematica
    First[RealDigits[ChampernowneNumber[8], 10, 100]]
Previous Showing 21-30 of 32 results. Next