Logo
Published on

Recurring decimals and modular structure

Authors
  • avatar
    Name
    Vu Hung
    Twitter

Problem Statement

Let pp be prime (p2,5p\neq2,5), and let nn be the period of 1p\frac1p.

  • Show n(p1)n\mid (p-1).
  • If n=2kn=2k, prove 10k1(modp)10^k\equiv-1\pmod p and the two half-blocks of the repetend sum to 10k110^k-1.

Hints

Factor 102k1=(10k1)(10k+1)10^{2k}-1=(10^k-1)(10^k+1) and use minimality of nn.


Solutions

From order arguments, nn is the multiplicative order of 1010 mod pp, so n(p1)n\mid(p-1). If n=2kn=2k, then p(102k1)p\mid(10^{2k}-1). Since 2k2k is minimal, p(10k1)p\nmid(10^k-1), hence p(10k+1)p\mid(10^k+1), so 10k1(modp)10^k\equiv-1\pmod p. Writing repetend as two kk-digit blocks A,BA,B gives Midy's theorem:

A+B=10k1.A+B=10^k-1.

Further Readings


Connect with me