login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A278920 In the binary race of Pi, where the race leader changes. 4
1, 7, 17, 33, 6359, 6363, 6371, 6385, 6443, 6445, 6451, 6465, 6525, 6527, 6563, 6565, 6569, 6571, 6573, 6693, 6917, 6923, 6925, 6965, 6967, 7003, 7011, 7337, 7365, 7367, 7369, 7383, 7403, 7705, 7711, 7763, 7769, 7773, 7775, 7789, 7799, 7801, 7809, 7811, 7821, 7823, 7827, 7829, 7855, 7895, 7899 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
In the binary expansion of Pi (A004601), where the number of zeros and the number of ones exchange the lead.
Obviously a(n) must be odd.
Not necessarily a(n)+1 = A039624(n); although every term here will be one greater than a term in A039624 except the initial one. As a result, this sequence is sparser than A039624.
LINKS
Hans Havermann and Robert G. Wilson v, Table of n, a(n) for n = 1..823
EXAMPLE
Obviously a(1) = 1 is a term since in the binary expansion of Pi the first binary digit must be a one and therefore the "ones" take the lead.
a(2) = 7 since this is the first time the "zeros" take the lead.
a(3) = 17 since in the first 17 binary digits of Pi, the "ones" regain the count or lead.
MATHEMATICA
pib = RealDigits[Pi, 2, 10000][[1]]; flag = 1; z = o = 0; k = 1; lst = {}; While[k < 10001, If[pib[[k]] == 0, z++, o++]; If[(z > o && flag != 1) || (z < o && flag != -1), AppendTo[lst, k]; flag = -flag]; k++]; lst
CROSSREFS
Sequence in context: A128002 A301695 A301725 * A074275 A051411 A195016
KEYWORD
nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 10:11 EDT 2024. Contains 371935 sequences. (Running on oeis4.)