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.

A278976 In the ternary Pi race between digits one and two, where the race leader changes.

Original entry on oeis.org

1, 216, 334, 349, 351, 426, 434, 576, 591, 632, 636, 638, 649, 656, 660, 665, 764, 771, 936, 939, 953, 1125, 1127, 1165, 1168, 1198, 190780, 190793, 190797, 190870, 190880, 191094
Offset: 1

Views

Author

Keywords

Examples

			Ternary Pi is 10.01021101222201021100211...
With no digits of ternary Pi, there are an equal number of ones and twos. 1 is in the sequence because with the initial digit of ternary Pi, 1 has now taken the count lead over 2 (1-0). 216 is the next term because with 216 initial digits of ternary Pi, 2 has now taken the count lead over 1 (75-74). 334 is the next term because with 334 initial digits, 1 regains the count lead over 2 (119-118).
		

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[(o > t && flag != 1) || (o < t && flag != -1), AppendTo[lst, k]; flag = -flag]; k++]; lst

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

Original entry on oeis.org

0, 2, 4, 7, 9, 15, 17, 18, 22, 23, 1480, 1483, 1485, 1487, 1488, 1492, 1494, 1498, 1499, 1503, 1504, 1507, 1508, 1511, 1512, 1516, 1518, 1529, 1537, 1539, 1540, 1550, 1557, 1559, 1566, 1591, 1592, 1593, 1594, 1595, 1651, 1728, 1729, 1731, 1733, 1735, 1737, 1738, 1740, 1756, 1757, 1762, 1767, 1768, 1771, 1777, 1779, 1781, 1782, 1784, 1789, 66404
Offset: 1

Views

Author

Hans Havermann, Dec 03 2016

Keywords

Comments

The subsequence of number of initial digits of ternary Pi wherein the digit counts of zeros, ones, and twos are all exactly equal begins 0, 15, 18. The next term, if it exists, is > 3^21 > 10^10.

Examples

			Ternary Pi is 10.01021101222201021100211...
0 is in the sequence because the first 0 digits contain 0 zeros and 0 ones.
22 is in the sequence because the first 22 digits contain 8 zeros and 8 ones.
23 is in the sequence because the first 23 digits contain 8 zeros and 8 ones.
		

Crossrefs

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

Showing 1-3 of 3 results.