(Repeating decimals)A block of $k$ digits repeating forever gives\[0.\overline{d_1d_2\cdots d_k}=\frac{\underline{d_1}\,\underline{d_2}\cdots\underline{d_k}}{10^k-1}.\]If $\gcd(b,10)=1$, then $\frac ab$ (in lowest terms) is purely periodic, and its period is the smallest $k$ with $b\mid 10^k-1$.
← 返回练习 386