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!)
A174832 a(n) is (the number of ones) - (the number of zeros) in the first n bits of the binary expansion of pi-3. 2
-1, -2, -1, -2, -3, -2, -3, -4, -5, -6, -5, -4, -3, -2, -1, 0, -1, 0, 1, 0, 1, 0, 1, 0, 1, 0, -1, -2, -1, -2, -3, -4, -3, -4, -5, -6, -7, -6, -7, -6, -5, -6, -5, -6, -7, -8, -7, -6, -7, -8, -9, -10, -9, -10, -11, -12, -11, -10, -11, -10, -11, -12, -11, -10, -11 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

T. D. Noe, Table of n, a(n) for n = 1..10000

MATHEMATICA

d=Drop[RealDigits[Pi, 2, 10002][[1]], 2]; s=0; Table[If[d[[i]] == 0, s--, s++]; s, {i, Length[d]}]

CROSSREFS

Cf. A178980 (where zeros occur in this sequence)

Sequence in context: A036576 A171729 A127255 * A076827 A165477 A318687

Adjacent sequences:  A174829 A174830 A174831 * A174833 A174834 A174835

KEYWORD

sign,base

AUTHOR

T. D. Noe, Jan 12 2011

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 March 30 10:09 EDT 2020. Contains 333125 sequences. (Running on oeis4.)