# Category:Canonical P-adic Expansion of Rational is Eventually Periodic

Let $\struct {\Q_p, \norm {\,\cdot\,}_p}$ be the $p$-adic numbers for some prime $p$.
Let $x \in \Q_p$.
$x$ is a rational number if and only if the canonical expansion of $x$ is eventually periodic.