A139723 Number of digits between successive occurrences of digit 5 in decimal representation of Pi.
3, 1, 20, 16, 2, 9, 28, 18, 20, 0, 1, 7, 1, 14, 13, 4, 0, 0, 11, 18, 2, 11, 14, 11, 3, 15, 31, 10, 0, 8, 12, 6, 9, 11, 2, 8, 9, 4, 9, 6, 1, 1, 3, 24, 3, 17, 3, 3, 1, 38, 18, 27, 15, 18, 6, 7, 3, 7, 7, 32, 7, 2, 1, 4, 11, 4, 6, 23, 19, 27, 2, 16, 1, 4, 2, 0, 12, 6, 6, 2, 25, 4, 2, 26, 3, 8, 0, 7, 1, 9
Offset: 1
Programs
-
Mathematica
Last[#]-First[#]-1&/@Partition[Transpose[Position[RealDigits[Pi,10,1000],5]][[2]],2,1] (* Harvey P. Dale, Dec 06 2013 *)