[go: up one dir, main page]

login
Starting positions of strings of three 8's in the decimal expansion of Pi.
2

%I #17 Oct 02 2018 13:33:09

%S 4751,4752,4985,5871,6070,6850,9338,10229,10527,14298,16763,16910,

%T 17164,18483,19469,19752,20337,20807,21225,22192,22216,22770,23079,

%U 25062,25196,26886,27750,30086,30633,30687,30796,30797,32251,33850,35639

%N Starting positions of strings of three 8's in the decimal expansion of Pi.

%H Harvey P. Dale, <a href="/A083637/b083637.txt">Table of n, a(n) for n = 1..1000</a>

%H <a href="/index/Ph#Pi314">Index entries for sequences related to the number Pi</a>

%H Dave Andersen, <a href="http://www.angio.net/pi/piquery">Pi-Search Page</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/PiDigits.html">Pi Digits.</a>

%t q=9!;z=8;a=RealDigits[Pi,10,q];lst={};Do[b=a[[1]][[n]];c=a[[1]][[n+1]];d=a[[1]][[n+2]];If[b==z&&c==z&&d==z,AppendTo[lst,n-1]],{n,q-2}];lst (* _Vladimir Joseph Stephan Orlovsky_, Jun 19 2009 *)

%t SequencePosition[RealDigits[Pi,10,36000][[1]],{8,8,8}][[All,1]]-1 (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Oct 02 2018 *)

%Y Cf. A050263 (two 8's), A083638 (four 8's).

%K base,nonn

%O 1,1

%A _Rick L. Shepherd_, May 05 2003