The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A196686 Excess of number of odd digits over even digits of Pi. 2
 1, 2, 1, 2, 3, 4, 3, 2, 3, 4, 5, 4, 5, 6, 7, 8, 7, 8, 7, 6, 5, 4, 3, 2, 3, 4, 3, 4, 3, 4, 5, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 11, 10, 9, 10, 11, 10, 11, 10, 9, 10, 11, 10, 11, 10, 11, 10, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 2, 3, 2, 1, 0, -1, -2, -1, -2, -3, -4, -3, -2, -3, -4, -3, -2 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS Cumulative sum of A030657 with zeros replaced by "-1". LINKS Zak Seidov, Table of n, a(n) for n = 1..10000 Zak Seidov, Dependence a(n) for n = 1..10000 Zak Seidov, Dependence a(n) for n = 1..10^6 EXAMPLE Among first 10 digits of Pi, {3,1,4,1,5,9,2,6,5,3}, there are 7 odd and 3 even, hence a(10)=7-3=4. MATHEMATICA rd=RealDigits[N[Pi, 10000]][[1]]; a=0; s=Reap[Do[a=a+2Mod[rd[[n]], 2]-1; Sow[{n, a}], {n, 10000}]][[2, 1]]; (* this gives b-file *) (* Zak Seidov, Oct 05 2011 *) CROSSREFS Cf. A030657, A175792. Sequence in context: A202275 A030307 A175792 * A213088 A169809 A214962 Adjacent sequences:  A196683 A196684 A196685 * A196687 A196688 A196689 KEYWORD sign,base AUTHOR Zak Seidov, Oct 05 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.

Last modified January 24 01:05 EST 2020. Contains 331178 sequences. (Running on oeis4.)