Pi, PINs and Permutations
datagenetics.com
datagenetics.com
[edit to add] and I don't mean that in a snarky way. Was just curious.
Other Pi sites seem to follow similar protocol. It will create an "off-by-one" for most answers, but since the string that is the furthest away does not start with a "3", other than the off-by-one, it will not change the results :)
In other words, the first 10 characters (again looking at only the fractional portion:
1415926535
The longest repetition is a length of one and the digit is 1.
Playing with regexes, I found:
In 100 digits, you get a repetition of the digits 592
In 1000 digits, the first longest repetition is 23846
In 10000 digits, I found a six digit repetition, 120190 but at that point, the quadradic nature of the regex made searching for 7 impossible so I would probably write a program that used something like suffix trees to get further.
Each extra digit seems to require ~ ten times as many decimals.
k | n
------------
4 | 97,875.6
5 | 1,209,014.1
6 | 14,392,726.2
7 | 166,953,113.2
8 | 1,899,789,640.9
Which agrees reasonably well with the actual values, at least those found so far.
[1] http://math.stackexchange.com/questions/80475/kth-order-stat... [2] https://en.wikipedia.org/wiki/Euler%E2%80%93Mascheroni_const...