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.

A278975 In the ternary Pi race between digits zero and two, where the race leader changes.

Original entry on oeis.org

2, 14, 17, 33, 156, 189, 4853, 5494, 5541, 5548, 5663, 5665, 5668, 5673, 5686, 5689, 5702, 5704, 5719, 5732, 5739, 5831, 5834, 5839, 5845, 5847, 5905, 5913, 5925, 5928, 5950, 5978, 5980, 5986, 6000
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 twos. 2 is in the sequence because with the initial 2 digits of ternary Pi, 0 has now taken the count lead over 2 (1-0). 14 is the next term because with 14 initial digits of ternary Pi, 2 has now taken the count lead over 0 (5-4). 17 is the next term because with 17 initial digits, 0 regains the count lead over 2 (6-5).
		

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 > t && flag != 1) || (z < 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

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.