Midy's theorem

Midy's theorem states that when the decimal expansion of 1/p has period 2n, its two n-digit repetend halves sum to 10ⁿ − 1.

Connect