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

%I #16 Jan 09 2015 08:51:23

%S 135,185,484,535,661,687,824,964,1070,1397,1735,1736,1840,1889,1890,

%T 1910,2036,2042,2140,2278,2279,2372,2376,2377,2412,2432,2527,2551,

%U 2651,3019,3080,3389,3402,3434,3435,3604,3883,3944,3988,4233,4375

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

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

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

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

%Y Cf. A000796.

%K nonn,base

%O 1,1

%A _Eric W. Weisstein_