login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons 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

Table of n, a(n) for n=1..108.

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: A330548 A225817 A332732 * A328306 A267256 A334460

Adjacent sequences:  A248860 A248861 A248862 * A248864 A248865 A248866

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 15 13:11 EDT 2020. Contains 336504 sequences. (Running on oeis4.)