OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Pi Digits
MATHEMATICA
q=8!; z=9; a=RealDigits[Pi, 10, q]; lst={}; Do[b=a[[1]][[n]]; c=a[[1]][[n+1]]; If[b==z&&c==z, AppendTo[lst, n-1]], {n, q-1}]; lst (* Vladimir Joseph Stephan Orlovsky, Jun 19 2009 *)
Transpose[SequencePosition[RealDigits[Pi, 10, 4000][[1]], {9, 9}]][[1]]-1 (* The program uses the SequencePosition function from Mathematica version 10 *) (* Harvey P. Dale, Dec 27 2015 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved