login
A050230
Starting positions of strings of 2 4's in the decimal expansion of Pi.
1
59, 125, 182, 201, 217, 453, 511, 655, 726, 804, 833, 1249, 1252, 1508, 1639, 1904, 2085, 2261, 2309, 2350, 2707, 2708, 2764, 2799, 2827, 2845, 2928, 2929, 3109, 3139, 3372, 3476, 3477, 3681, 3717, 3787, 3809, 3810, 3851, 3866, 3867, 3905
OFFSET
1,1
MATHEMATICA
q=8!; z=4; 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 *)
Flatten[Position[Partition[Rest[RealDigits[Pi, 10, 5000][[1]]], 2, 1], _? (#=={4, 4}&)]] (* Harvey P. Dale, Jul 20 2011 *)
CROSSREFS
Cf. A000796.
Sequence in context: A141934 A044246 A044627 * A138633 A237687 A098032
KEYWORD
nonn,base
STATUS
approved