I would like some guidance for this problem: Suppose $a/b$ is a rational number. Prove that, if $2$ and $5$ are not divisors of $b$, the period length of the decimal expansion is the smallest integer $k$ such that $10^k \equiv 1 \mod b$.
I can find an explanation related here, but without proof: https://math.stackexchange.com/a/377696/737799 Thanks in advance!