The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A248863 Table of bit patterns: The bits of A011545(n) -- approximations to Pi -- placed into row n in the order MSB to LSB. 0
1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
The binary representations of A011545 are 3 = 11_2, 31 = 11111_2, 314 = 100111010_2, 3141 = 110001000101_2, ..., and these binary digits are read left to right and added to the table.
LINKS
EXAMPLE
3 is 2 + 1 = 2^0 + 2^1, the first 2 bits, so the sequence starts 1,1.
31 is 16 + 8 + 4 + 2 + 1 = 2^0 + 2^1 + 2^2 + 2^3 + 2^4, the first 5 bits, adding 1,1,1,1,1.
314 is 256 + 32 + 16 + 8 + 2 = 2^8 + 2^5 + 2^4 + 2^3 + 2^1 adding 1,0,0,1,1,1,0,1,0.
1,1;
1,1,1,1,1;
1,0,0,1,1,1,0,1,0;
1,1,0,0,0,1,0,0,0,1,0,1;
1,1,1,1,0,1,0,1,0,1,1,0,1,1,1;
1,0,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,1,1;
1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,0,0,0;
1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,0,0,1,1,1,0,1,1,0;
PROG
(Python) mystr=''
with open('c:\\bA011545.txt') as myfile:
...mess = [line.rstrip('\n') for line in myfile]
for i5 in range(len(mess)):
...tp=mess[i5].split(' ')
...mystr=mystr+bin(int(tp[1]))
pre1=mystr.replace('0b', '')
pre2=pre1.replace('1', '1, ')
final=pre2.replace('0', '0, ')
print (final)
CROSSREFS
Cf. A011545 (Decimal expansion of Pi truncated to n places).
Cf. A004601 (Binary expansion of Pi).
Sequence in context: A355823 A355825 A332732 * A328306 A267256 A351824
KEYWORD
easy,nonn,tabf,less
AUTHOR
Bill McEachen, Mar 03 2015
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 June 6 07:26 EDT 2024. Contains 373115 sequences. (Running on oeis4.)