OFFSET
1,1
LINKS
Dave Andersen, Pi-Search Page
Eric Weisstein's World of Mathematics, Pi Digits.
MATHEMATICA
$MaxPrecision=10^8; a=RealDigits[Pi, 10, 9! ]; lst={}; Do[b=a[[1]][[n]]; c=a[[1]][[n+1]]; d=a[[1]][[n+2]]; e=a[[1]][[n+3]]; If[b==2&&c==2&&d==2&&e==2, AppendTo[lst, n-1]], {n, 6*6!, 9!-3}]; lst (* Vladimir Joseph Stephan Orlovsky, Jun 07 2009 *)
With[{p=Partition[Rest[RealDigits[Pi, 10, 300000][[1]]], 4, 1]}, Flatten[ Position[ p, {2, 2, 2, 2}]]] (* Harvey P. Dale, Oct 10 2011 *)
Module[{nn=300000, pid}, pid=RealDigits[Pi, 10, nn][[1]]; SequencePosition[ pid, {2, 2, 2, 2}]][[All, 1]]-1 (* Harvey P. Dale, Jan 13 2023 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Rick L. Shepherd, May 01 2003
STATUS
approved