Lesson 7 of 8 · 17 min
Rational numbers as decimals
Explain why every fraction gives a terminating or recurring decimal, predict which, and convert recurring decimals back into fractions in lowest terms.
What you will be able to do
- Convert a fraction to a terminating or recurring decimal by division.
- Predict whether in lowest terms terminates, from the prime factors of .
- Convert terminating and recurring decimals, including eventually recurring ones, to fractions in lowest terms.
- Explain why a decimal that neither terminates nor recurs is irrational.
Divide 3 by 8 and the division stops: . Divide 1 by 3 and it never stops: . Divide 1 by 7 and you get , the same six digits over and over. Could a fraction ever produce a decimal that goes on forever without repeating? The answer is no, and the reason is a lovely piece of reasoning about remainders.
Definition
Terminating and recurring decimals
- A terminating decimal stops: , , .
- A recurring decimal has a block of digits that repeats forever. Mark the block with a bar or with dots over its first and last digits: and .
- It is eventually recurring if the repeat starts after some other digits: .
Long division of . At each step the remainder (inside) is multiplied by 10 and divided by 7, giving a digit (outside) and a new remainder. Only the remainders 1 to 6 are possible, so a remainder must come round again, and from then on the digits repeat: .
Key idea
Every rational number terminates or recurs
Dividing by (with ), every remainder is one of . If a remainder is ever 0, the decimal terminates. If not, there are only possible remainders, so within steps one must repeat, and from then on the digits repeat too.
So every rational number is a terminating or recurring decimal. The block of a fraction with denominator is at most digits long.
Which fractions terminate? A terminating decimal is a fraction over a power of 10, such as , and . So a fraction in lowest terms terminates exactly when its denominator has no prime factors other than 2 and 5. Then you can multiply up to a power of 10: .
Key idea
The terminating test
Write in lowest terms. It terminates if for whole numbers ; otherwise it recurs.
: , terminates (). : , recurs. : terminates () once simplified.
Select every fraction whose decimal terminates.
Worked example
Writing as a decimal
Without dividing, decide whether is a terminating or recurring decimal. Then write it as a decimal.
Step 1: Check lowest terms and factorise the denominator
is in lowest terms and .
Step 2: Apply the test
The denominator has a prime factor 3, which is not 2 or 5, so is a recurring decimal.
Step 3: Divide
: r ; r ; r ; r ; …
The remainder 8 has come round again, so the digit 6 repeats forever.
Step 4: Write it with recurring notation
Try it yourself first, then check the working one step at a time.
Answer
recurs: .
Method
Write the fraction in lowest terms.
Terminates if the denominator is ; otherwise recurs.
Divide until a remainder repeats, then mark the repeating block.
Watch out for
Writing : only the 6 repeats.
Converting a recurring decimal to a fraction
Name it
Let be the decimal, for example
Shift by the length of the block
Multiply by where is the number of digits in the repeating block:
Subtract to cancel the repeating tail
, so . The infinite tails are identical, so they cancel exactly.
Solve and simplify
.
Write as a fraction in lowest terms.
Eventually recurring decimals need one more step: first shift the non-repeating digits past the decimal point. For : and . These have the same tail, so , and .
Worked example
An eventually recurring decimal as a fraction
Express as a fraction in lowest terms.
Step 1: Name the decimal
Let The non-repeating part has 1 digit (2) and the repeating block has 2 digits (45).
Step 2: Make two numbers with the same tail
and
moves the non-repeating digit in front of the point; multiplying by a further shifts by one full block, so the tails match exactly.
Step 3: Subtract
, so .
Step 4: Solve and simplify
, dividing top and bottom by 9.
Step 5: Check
has a factor 11, so should recur, as it does:
Try it yourself first, then check the working one step at a time.
Answer
Method
Let be the decimal.
Multiply by powers of 10 to get two numbers whose decimal tails are identical.
Subtract, solve for and simplify.
Watch out for
Using , which does not line up the tails: does not cancel.
Leaving the answer as .
Write as a fraction in lowest terms.
Is really equal to 1?
Yes. Let . Then , so , and .
Another way to see it: , so , and . Some numbers have two decimal forms: too.
Key idea
The converse, and irrational numbers
The subtraction method works for any terminating or recurring decimal, so every one of them is rational. Together with the remainder argument:
So a decimal that never ends and never settles into a repeating block, such as (one more 0 each time), is irrational. Recognising as irrational from its digits is impossible, though: you only ever see finitely many. That needs a proof, which is the next lesson.
Exam tip
Show the subtraction
In a "show that" or "express as a fraction" question, write the two equations with matching tails, subtract them, solve, and simplify. Writing from a remembered rule, with no working, may not earn the method marks.
Summary
Every fraction gives a terminating or recurring decimal, because division has only finitely many possible remainders.
in lowest terms terminates exactly when has no prime factors other than 2 and 5.
To convert a recurring decimal: let be the decimal, multiply by powers of 10 to line up the repeating tails, subtract, solve and simplify.
A number is rational if and only if its decimal terminates or recurs; exactly.
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.