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

A278974 In the ternary Pi race between digits zero and one, where the race leader changes.

Original entry on oeis.org

1, 3, 8, 1481, 1505, 1509, 1513, 1541, 1567, 1596, 1730, 1734, 1739, 1741, 1769, 1772, 1783, 1790, 66446, 66489, 66493, 66496, 68547, 68554, 68871, 69116, 69146, 69190, 69194, 69268, 69270, 69379, 69381, 69389, 241170
Offset: 1

Views

Author

Keywords

Examples

			Ternary Pi is 10.01021101222201021100211...
With no digits of ternary Pi, there are an equal number of zeros and ones. 1 is in the sequence because with the initial digit of ternary Pi, 1 has now taken the count lead over 0 (1-0). 3 is the next term because with 3 initial digits of ternary Pi, 0 has now taken the count lead over 1 (2-1). 8 is the next term because with 8 initial digits, 1 regains the count lead over 0 (4-3).
		

Crossrefs

Programs

  • Mathematica
    pib = RealDigits[Pi, 3, 5000000][[1]]; flag = 1; z = o = t = 0; k = 1; lst = {}; While[k < 5000001, Switch[ pib[[k]], 0, z++, 1, o++, 2, t++]; If[(z > o && flag != 1) || (z < o && flag != -1), AppendTo[lst, k]; flag = -flag]; k++]; lst

A278978 Number of initial digits of ternary Pi wherein the digit counts of zeros and twos are exactly equal.

Original entry on oeis.org

0, 1, 13, 15, 16, 18, 19, 20, 31, 32, 127, 146, 147, 151, 152, 154, 155, 183, 184, 188, 4852, 4854, 4855, 5375, 5490, 5493, 5539, 5540, 5542, 5547, 5624, 5625, 5628, 5629, 5649, 5652, 5657, 5659, 5661, 5662, 5664, 5667, 5669, 5670, 5671, 5672, 5674, 5681, 5685, 5687, 5688, 5696, 5701, 5703, 5718, 5731, 5733, 5735, 5738, 5827, 5829, 5830
Offset: 1

Views

Author

Hans Havermann, Dec 03 2016

Keywords

Examples

			Ternary Pi is 10.01021101222201021100211...
0 is in the sequence because the first 0 digits contain 0 zeros and 0 twos.
15 is in the sequence because the first 15 digits contain 5 zeros and 5 twos.
16 is in the sequence because the first 16 digits contain 5 zeros and 5 twos.
		

Crossrefs

A278979 Number of initial digits of ternary Pi wherein the digit counts of ones and twos are exactly equal.

Original entry on oeis.org

0, 14, 15, 18, 37, 38, 215, 218, 267, 280, 282, 290, 326, 328, 329, 331, 332, 333, 346, 347, 348, 350, 403, 404, 405, 425, 430, 431, 433, 435, 440, 454, 455, 456, 457, 458, 575, 577, 578, 579, 581, 590, 630, 631, 633, 634, 635, 637, 643, 644, 645, 646, 647, 648, 651, 652, 653, 654, 655, 658, 659, 663, 664, 666, 763, 770, 935, 937, 938, 950, 952, 1124
Offset: 1

Views

Author

Hans Havermann, Dec 03 2016

Keywords

Examples

			Ternary Pi is 10.01021101222201021100211...
0 is in the sequence because the first 0 digits contain 0 ones and 0 twos.
14 is in the sequence because the first 14 digits contain 5 ones and 5 twos.
15 is in the sequence because the first 15 digits contain 5 ones and 5 twos.
		

Crossrefs

Showing 1-3 of 3 results.