why do rational numbers have repeating decimals?
#math #numbertheory
My younger brother is learning about the relationship between decimals and fractions right now. Of course, some fractions (i.e. only powers of 2 and 5 in the denominator) have nice and intuitive decimal representations (think ), but he's just learning about repeating decimals.
This led me to a thought: why do rational numbers have repeating decimals? We define irrational numbers as numbers whose decimal representations never end and never repeat1. I wonder why rational numbers repeat?
It wasn't quite as interesting as I'd hoped, but here's an outline of the proof:
- We use the traditional long division technique, adding a whole bunch of 0's after the decimal point
- We note that each digit that's spit out by the division depends only on the previous number
- Using Pigeonhole we can prove that the decimal either ends at some point or repeats
Proof time? Proof time.
We wish to show that any has a decimal representation that, at some point, becomes periodic.
Consider a rational number of the form , with . We may use the standard long division algorithm to compute the decimal representation. This generates a sequence of digits in the decimal representation, computed one digit at a time. Let this sequence be starting from the decimal point. Thus
Note that this sequence is computed using long division, so each term depends only on the previous term (after a certain point in the division , since and are finite). Therefore, the sequence is fully determined in one direction by the first digit computed. However, we have that and , so there are finitely many possible values in the sequence. However, the sequence is infinitely long (note that we consider and other seemingly "finitely long" decimals to be represented as ). Thus there exists for some , by the Pigeonhole Principle.
Since any term in the sequence is determined from the previous term, then it follows that . By induction, this implies that, for any ,
hence the sequence eventually becomes periodic.
An interesting point to be made here is that this argument is the exact same for any integer base . This lends itself to certain applications like powers of times ; you can always multiply by 2 to the point where you have a 0 to the immediate right of the decimal point, and similarly for 1. In fact, you can do this in infinitely many ways, since there are infinitely many 1's and 0's. Just some food for thought:)
Footnotes
-
I vividly remember arguments where my friends just could not accept that never repeated. It led to the loss of recesses and paper, seeing as they tried writing all the digits until it repeated. Oh, to be young again... ↩