# Basis Expansion of Rational Number

Let $b$ be a number base.
Let $x$ be a real number.
Then $x$ is a rational number if and only if the basis expansion of $x$ in base $b$ terminates or recurs.