cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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

Original entry on oeis.org

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
Offset: 1

Views

Author

Rick L. Shepherd, May 01 2003

Keywords

Crossrefs

Cf. A050215 (two 2's), A083607 (four 2's).

Programs

  • 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 *)