login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A030657
Parity of digits of Pi.
7
1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1
OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..10000 [a(10000)=1 corrected by Georg Fischer, Jun 22 2020]
FORMULA
a(n) = A000035(A000796(n)). - Omar E. Pol, Oct 26 2013
MATHEMATICA
s = First[RealDigits[N[Pi, 1000]]]; aa = {}; Do[If[OddQ[s[[n]]], AppendTo[aa, 1], AppendTo[aa, 0]], {n, 1, Length[s]}]; aa (* Artur Jasinski, Mar 05 2010 *)
s= RealDigits[N[Pi, 10000]][[1]]; Table[{n, Mod[s[[n]], 2]}, {n, 10000}](* this gives b-file *)(* Zak Seidov, Oct 05 2011*)
CROSSREFS
Sequence in context: A030302 A051023 A247795 * A249066 A176178 A267778
KEYWORD
nonn,base,easy
EXTENSIONS
More terms from Simon Plouffe.
STATUS
approved