Logo
Published on

Prime denominators and cycle length

Authors
  • avatar
    Name
    Vu Hung
    Twitter

Problem Statement

Let pp be prime, p2,5p\neq2,5, and LL be period length of 1p\frac1p.

  • Show LL is the least positive integer with 10L1(modp)10^L\equiv1\pmod p.
  • Deduce L(p1)L\mid(p-1).
  • Find periods for 137\frac1{37} and 141\frac1{41}.

Hints

Use Fermat's theorem and first occurrence of p(10n1)p\mid(10^n-1).


Solutions

Recurring block theory gives (10L1)/pZ(10^L-1)/p\in\mathbb{Z}, hence 10L1(modp)10^L\equiv1\pmod p; minimality gives least such LL. By Fermat, 10p11(modp)10^{p-1}\equiv1\pmod p, so the order LL divides p1p-1. Since 37(1031)37\mid(10^3-1) and not 1011,102110^1-1,10^2-1, period is 33. Since 41(1051)41\mid(10^5-1) and not 101110^1-1, period is 55.


Further Readings


Connect with me