A139720 Number of digits between successive occurrences of digit 2 in decimal representation of Pi.
9, 4, 6, 4, 19, 9, 9, 2, 6, 5, 3, 8, 9, 1, 20, 0, 3, 8, 10, 4, 7, 11, 0, 16, 17, 7, 11, 2, 15, 14, 4, 8, 2, 5, 3, 23, 2, 3, 1, 1, 16, 19, 5, 25, 16, 11, 20, 5, 14, 1, 4, 0, 14, 9, 13, 10, 0, 9, 11, 6, 5, 7, 20, 7, 4, 6, 9, 19, 10, 0, 24, 0, 5, 3, 3, 8, 1, 2, 20, 19, 13, 17, 13, 15, 2, 1, 0, 3, 11
Offset: 1
Programs
-
Mathematica
Differences[Flatten[Position[RealDigits[Pi,10,1000][[1]],2]]]-1 (* Harvey P. Dale, May 26 2016 *)