Show that a decimal with a repeating pattern represents a rational number

decimal-expansionrational numbersreal-analysis

Exercise 1.3.1 (Guide to Analysis, Hart, p.4) Consider a decimal of the form $x=0.a_1a_2…a_n$ with a repeating pattern of $n$ digits. Write $x = 0.a_1a_2 … a_n$. Express $10^nx$ as a decimal. Then subtract $x$ and check that $10^nx – x$ is an integer. Deduce that $x$ is rational. Now extend the method to prove that all decimals with a repeating pattern represent rational numbers.

First question: let $x= 0.33$, then $10^2*.33 – 0.33=33-0.33=32.67$ is not an integer. Now, it seems that I miss understood something. Can someone explains to me what he is saying.

Thanks in advance.

Best Answer

For example, let $x=0.14141414...$.

Then $100x=14.141414...$, so $100x-x=14,$ so $99x=14$ so $x=14/99$.

In general, if $x=0.\overline {a_1a_2\dots a_n}$, where the overline indicates it's repeated,

then $10^nx=a_1a_2...a_n.\overline{a_1a_2\dots a_n}$, so $10^nx-x=a_1a_2\dots a_n$, so $x=\dfrac{a_1a_2\dots a_n}{10^n-1} $ is rational.