The Autocorrelation Formula
Slide 142857 over a second copy of itself, wrapping the digits around. At the starting position all six digits match. At each of the other five positions every digit misses. For 1/7 the count at any shift can be read from a single line of a Fourier table. When long division splits the remainders into several cycles, the line counts matches across all the cycles together.