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-7 of 7 results.

A096567 First digit to appear n times in the base-10 expansion of Pi.

Original entry on oeis.org

3, 1, 5, 3, 3, 3, 3, 3, 3, 9, 9, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 2, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4, 4, 4, 4, 4, 8, 2, 2, 8, 2, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Matthew Vandermast, Jun 26 2004

Keywords

Comments

The number 7 finally appears as a(32344). - T. D. Noe, Sep 13 2012
The number 6 appears for the first time as a(99032274). - Kester Habermann, Feb 01 2021

Examples

			a(3) = 5 because 5 is the first digit to appear 3 times in the decimal expansion of Pi = 3.141(5)926(5)3(5)... - _Bobby Jacobs_, Aug 30 2017
		

Crossrefs

Programs

  • Mathematica
    nn = 1000; t = {}; d = RealDigits[Pi, 10, nn][[1]]; dCnt = Table[0, {10}]; cnt = 1; Do[b = ++dCnt[[1 + d[[n]]]]; If[b == cnt, AppendTo[t, d[[n]]]; cnt++], {n, nn}]; t (* T. D. Noe, Sep 13 2012 *)

Extensions

More terms from David Wasserman, Nov 16 2007

A276992 First 2-digit number to appear n times in the decimal expansion of Pi.

Original entry on oeis.org

31, 26, 93, 62, 82, 28, 28, 28, 48, 48, 48, 48, 48, 9, 9, 81, 17, 17, 95, 95, 95, 95, 95, 95, 95, 19, 21, 21, 21, 19, 95, 9, 9, 9, 95, 46, 95, 59, 9, 9, 9, 95, 95, 95, 95, 59, 59, 59, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14, 14, 14, 9, 9, 9, 9, 14, 9, 9
Offset: 1

Views

Author

Bobby Jacobs, Sep 24 2016

Keywords

Comments

a(n) is the 2-digit number that appears in Pi n times before any other 2-digit number appears in Pi n times.
Note that the sequence contains elements whose number of digits is 2 or 1, see examples. - Omar E. Pol, Oct 05 2016
Comment from N. J. A. Sloane, Mar 08 2023 (Start)
Make a table T[0,0], T[0,1], ...,T[9,9], with 100 columns, labeled 0,0 to 9,9.
Scan the digits of pi = 3.14159....
First you see 3, 1 so increment the count for 3,1; next you see 1,4, so increment the count for 1,4. Then you see 4,1 so increment the count for 4,1. Do this for ever.
The first time any count hits 6, say T[3,8] = 6, then a(6) = 38.
If it happens that T[0,9] hits 6 first, then a(6) would be 09, but we would drop the 0, and write a(6) = 9.
(End)
Comment from Alois P. Heinz, Mar 08 2023 (Start)
Initially, "09" is very often the first to occur n times, while other 2-digit substrings fall behind. They can show up later. This is not strange, this is Pi.
In the first 10000 terms we see "09" 40 times, "14" 33 times, and so on. Here is the complete list:
[40, 9], [33, 14], [2, 17], [13, 19], [3, 21], [1, 26], [892, 27], [3, 28], [1, 31], [144, 34], [107, 35], [179, 39], [2594, 46], [5, 48], [127, 54], [1387, 55], [4, 59], [6, 62], [41, 65], [671, 71], [19, 74], [3406, 76], [1, 81], [1, 82], [94, 85], [1, 93], [211, 94], [14, 95].
67 of the two-digit strings never show up in the first 10000 terms.
It does not mean that they do not appear in Pi. Indeed they do. It only means that they are never the first to reach some count. They may be behind by only a small amount. (End)
The fact that 09 is ahead so often is an example of the Arcsine Law Paradox at work. See for example Feller, Volume I, Chapter III. As Feller says, "[the conclusions] are not only unexpected but actually come as a shock to intuition and common sense." Of course the same phenomenon occurs with single digits of Pi, see A096567, where 5 seems to be ahead most of the time. - N. J. A. Sloane, Mar 09 2023

Examples

			a(2) = 26 because 26 is the first 2-digit number to appear 2 times in the decimal expansion of Pi = 3.14159(26)5358979323846(26)...
a(14) = 9 because "09" is the first 2-digit number to appear 14 times in the decimal expansion of Pi.
		

References

  • William Feller, An Introduction to Probability Theory and Its Applications, Vol. I, Chapter III, Wiley, 3rd Ed., Corrected printing 1970.

Crossrefs

Programs

  • Mathematica
    spi = ToString[Floor[10^100000 Pi]]; f[n_] := Block[{k = 2}, While[Length@ StringPosition[ StringTake[spi, k], StringTake[spi, {k - 1, k}]] != n, k++]; ToExpression@ StringTake[spi, {k - 1, k}]]; Apply[f, 72] (* Robert G. Wilson v, Oct 05 2016 *)

Extensions

a(21)-a(40) from Bobby Jacobs, Oct 01 2016
More terms from Alois P. Heinz, Oct 02 2016

A276686 First 4-digit number to appear n times in the decimal expansion of Pi.

Original entry on oeis.org

3141, 582, 9999, 2796, 6549, 2019, 2916, 8352, 5485, 5485, 5485, 5485, 5485, 5485, 5485, 1177, 1177, 5485, 1177, 3718, 5485, 5485, 1766, 1766, 5485, 4608, 4608, 4608, 4608, 4608, 5485, 5485, 504, 504, 504, 504, 504, 504, 504, 2103, 504, 504, 9479, 504, 504
Offset: 1

Views

Author

Bobby Jacobs, Sep 25 2016

Keywords

Comments

Note that the sequence contains elements whose number of digits is less than 4. See example.
The first 3 appearances of a(3) = 9999 overlap in 999999.

Examples

			a(2) = 582 because "0582" is the first 4-digit number to appear 2 times in the decimal expansion of Pi = 3.1415926535897932384626433832795028841971693993751(0582)097494459230781\ 640628620899862803482534211706798214808651328230664709384460955(0582)...
		

Crossrefs

Extensions

More terms from Alois P. Heinz, Oct 02 2016

A277171 First 5-digit number to appear n times in the decimal expansion of Pi.

Original entry on oeis.org

31415, 60943, 48940, 36041, 86538, 85990, 40230, 91465, 26063, 87258, 87258, 87258, 56517, 15157, 47392, 15157, 87258, 87258, 15157, 15157, 46083, 46083, 46083, 46083, 15931, 15931, 10767, 10767, 10767, 18804, 18804, 83903, 83903, 83903, 18271, 83903, 83903
Offset: 1

Views

Author

Bobby Jacobs, Oct 02 2016

Keywords

Examples

			a(2) = 60943 because 60943 is the first 5-digit number to appear 2 times in the decimal expansion of Pi.
		

Crossrefs

Extensions

More terms from Alois P. Heinz, Oct 02 2016

A291599 First 6-digit number to appear n times in the decimal expansion of Pi.

Original entry on oeis.org

314159, 949129, 266830, 178653, 872117, 872117, 872117, 919441, 919441, 735287, 820737, 420516, 802307, 556505, 267638, 107072
Offset: 1

Views

Author

Bobby Jacobs, Aug 27 2017

Keywords

Comments

The first 2 appearances of a(2) = 949129 both end at the beginning of a block of 100 digits of Pi after the decimal point. The 5th block of 100 digits of Pi after the decimal point ends with 94912, and the 6th block of 100 digits starts with 9. The 13th block of 100 digits of Pi after the decimal point ends with 94912, and the 14th block of 100 digits starts with 9.

Examples

			a(2) = 949129 because 949129 is the first 6-digit number to appear 2 times in the decimal expansion of Pi.
		

Crossrefs

Extensions

a(11)-a(16) added by Alois P. Heinz, Aug 28 2017

A291600 First 10-digit number to appear n times in the decimal expansion of Pi.

Original entry on oeis.org

3141592653, 4392366484, 9526413073, 7454969632, 1459184231, 3955267283
Offset: 1

Views

Author

Bobby Jacobs, Aug 27 2017

Keywords

Comments

This sequence was mentioned in a forum post called "Ten repeating numbers in Pi". It was about finding a 10-digit number that repeated in Pi. The answer was a(2) = A197123(10) = 4392366484.

Examples

			a(2) = 4392366484 because 4392366484 is the first 10-digit number to appear 2 times in the decimal expansion of Pi.
		

Crossrefs

Extensions

a(5)-a(6) from Michael S. Branicky, Sep 04 2024

A290643 First 3-digit number to appear n times in the decimal expansion of e.

Original entry on oeis.org

271, 182, 75, 499, 793, 320, 320, 23, 23, 23, 23, 23, 23, 23, 23, 709, 709, 709, 709, 709, 171, 171, 171, 171, 171, 171, 171, 171, 171, 166, 166, 166, 93, 772, 772, 232, 232, 232, 232, 232, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772
Offset: 1

Views

Author

Bobby Jacobs, Aug 08 2017

Keywords

Comments

Some of the numbers start with 0. For example, a(3) is the 3-digit number 075.

Examples

			a(2) = 182 because 182 is the first 3-digit number to appear 2 times in the decimal expansion of e = 2.7(182)8(182)...
		

Crossrefs

Showing 1-7 of 7 results.