Finding where the first n digits of pi repeat.