OFFSET
1,1
COMMENTS
Is this sequence infinite?
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..459 (* The highest term in this b-file is 905564 and there are no further terms up to and including the 5 millionth digit of Pi. *)
EXAMPLE
84 is in the sequence because the first 84 digits of Pi = 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986 include 42 odd digits and 42 even digits.
MATHEMATICA
L= Rest@FoldList[ Plus, 0, (-1)^First@ RealDigits[Pi, 10, 3000]] ; Do[If [L[[n]]==0, Print[n]], {n, 3000}]
Position[Accumulate[If[EvenQ[#], 1, -1]&/@(RealDigits[Pi, 10, 3000][[1]])], 0]//Flatten (* Harvey P. Dale, Jan 10 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Sep 09 2010
STATUS
approved