|
|
A083606
|
|
Starting positions of strings of three 2's in the decimal expansion of Pi.
|
|
1
|
|
|
1735, 1889, 2278, 2376, 3434, 4902, 4903, 7911, 7964, 7965, 9203, 9293, 9334, 10427, 11704, 12486, 12487, 12857, 13040, 13562, 13725, 14668, 16679, 17619, 17882, 19099, 19479, 21576, 25469, 26266, 26959, 27433, 29447, 30291, 30454, 30527
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
MATHEMATICA
|
a=RealDigits[Pi, 10, 7*7! ]; lst={}; Do[b=a[[1]][[n]]; c=a[[1]][[n+1]]; d=a[[1]][[n+2]]; If[b==2&&c==2&&d==2, AppendTo[lst, n-1]], {n, 6!, 7*7!-2}]; lst (* Vladimir Joseph Stephan Orlovsky, Jun 07 2009 *)
#-1&/@(Flatten[Position[Union[#]&/@Partition[RealDigits[Pi, 10, 35000][[1]], 3, 1], {2}]]) (* Harvey P. Dale, Oct 01 2011 *)
SequencePosition[RealDigits[Pi, 10, 35000][[1]], {2, 2, 2}][[;; , 1]]-1 (* Harvey P. Dale, Apr 09 2023 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|