• Practice
  • About 18 min
  • 5 practice questions

Decimal expansions of real numbers

Find decimal expansions by long division, tell terminating, non-terminating recurring and non-terminating non-recurring decimals apart, convert recurring decimals to p/q, and find an irrational number between two rational numbers.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Explain, by watching the remainders in long division, why a rational number's decimal either ends or repeats.
  • Write terminating and recurring decimals in the form p/q.
  • Recognise irrational numbers from their decimals and write one between two given rational numbers.

A second way to tell rational and irrational numbers apart is to look at their decimal expansions. This lesson follows the textbook's approach: divide, watch the remainders, and notice the pattern.

Watch the remainders

Divide 5 by 16: the remainders are 2, 4, 8 and then 0, and 5/16 = 0.3125. Divide 4 by 11: the remainders go 7, 4, 7, 4, ... and 4/11 = 0.363636.... Divide 2 by 7: the remainders are 6, 4, 5, 1, 3, 2 and then 6 again, so 2/7 = 0.285714285714....

  • The remainders either become 0 at some stage, or they start repeating.
  • When dividing by q, only the remainders 1, 2, ..., q − 1 are possible (other than 0), so the repeating string of remainders has fewer than q entries. For 2/7 it has 6 entries; 7 is the divisor.
  • When the remainders repeat, a block of digits in the quotient repeats too.

Two kinds of decimal for a rational number

Decimal expansions of rational numbers
KindWhat happensExamples
TerminatingThe remainder becomes 0; the decimal ends5/16 = 0.3125, 7/4 = 1.75
Non-terminating recurringThe remainder never becomes 0; a block of digits repeats for ever4/11 = 0.3636..., 2/7 = 0.285714285714...

A bar over the digits shows the repeating block. In this lesson we write the repeat in words or with dots: 0.3636... has the block 36, and 2.4777... has only the 7 repeating.

From a decimal back to p/q

The reverse is also true: a terminating or a non-terminating recurring decimal is always rational. A terminating decimal is easy: 2.45 = 245/100 = 49/20. For a recurring decimal, call it x, multiply by a power of 10 that shifts one repeating block, and subtract so the endless tail cancels.

Worked example 1: one and two repeating digits

Write 0.777... as p/q. Let x = 0.777.... Then 10x = 7.777... = 7 + x. So 9x = 7 and x = 7/9. Now write 2.363636... as p/q. Two digits repeat, so let x = 2.3636... and 100x = 236.3636.... Subtracting, 99x = 234, so x = 234/99 = 26/11. Check: 26 ÷ 11 = 2 remainder 4, and 4/11 = 0.3636..., so 26/11 = 2.3636.... Correct.

Worked example 2: when the repeat starts later

Write 0.41818... (only 18 repeats) as p/q. Let x = 0.41818.... First move the non-repeating 4 to the left of the point: 10x = 4.1818.... Then shift one more block of two digits: 1000x = 418.1818.... Subtract: 1000x − 10x = 418.1818... − 4.1818..., so 990x = 414 and x = 414/990 = 23/55. Check: 23/55 = 0.4 + 1/55 = 0.4 + 0.01818... = 0.41818....

The decimal expansion of a rational number is either terminating or non-terminating recurring, and every such decimal is rational. The decimal expansion of an irrational number is non-terminating non-recurring, and every such decimal is irrational.

— The two facts to remember

Reading a decimal

  • Terminating
    • Ends after some digits
    • Rational
    • e.g. 0.3125
  • Non-terminating recurring
    • Goes on for ever
    • A block repeats
    • Rational
    • e.g. 0.3636...
  • Non-terminating non-recurring
    • Goes on for ever
    • No block repeats
    • Irrational
    • e.g. 1.41421356...

Decimals of irrational numbers

The number 0.10110111011110... (one more 1 each time) never ends and never settles into a repeating block, so it is irrational. You can build infinitely many such numbers. The famous irrationals have decimals that look random: √2 = 1.41421356..., π = 3.14159265.... The value 22/7 is only an approximation of π, so π ≠ 22/7.

The textbook gives some history. The Sulbasutras, a mathematical text of the Vedic period, give the approximation √2 ≈ 1 + 1/3 + 1/(3 × 4) − 1/(3 × 4 × 34) = 1.4142156..., which agrees with √2 to five decimal places. Archimedes showed that 3.140845 < π < 3.142857, and Aryabhatta found π correct to four decimal places (3.1416).

Worked example 3: an irrational number between 1/4 and 1/3

First write both as decimals: 1/4 = 0.25 and 1/3 = 0.3333.... Any non-terminating non-recurring decimal between these will do. One choice is 0.2702700270002... (the blocks of zeros grow by one each time). It is bigger than 0.25, smaller than 0.333..., and never repeats, so it is an irrational number between 1/4 and 1/3.

Key takeaways: dividing p by q, the remainders end at 0 (terminating) or repeat (recurring), so every rational number has one of these two decimals. Convert recurring decimals with 'let x = ..., multiply by a power of 10, subtract'. A decimal that never ends and never repeats is irrational.

Check your understanding

  1. 1. What is the decimal expansion of 3/16, and what kind is it?

    1. 0.1875, terminating
    2. 0.1666..., non-terminating recurring
    3. 0.375, terminating
    4. 0.316, terminating
    Show answer

    Answer: A. Long division: 3 ÷ 16 = 0.1875 (remainders 14, 12, 8, 0). The remainder becomes 0, so the decimal terminates. 0.375 is 3/8, not 3/16.

  2. 2. Which fraction equals 0.555...?

    1. 1/2
    2. 5/9
    3. 55/100
    4. 5/11
    Show answer

    Answer: B. Let x = 0.555...; then 10x = 5.555... = 5 + x, so 9x = 5 and x = 5/9. The fraction 55/100 = 0.55 exactly, and 5/11 = 0.4545....

  3. 3. For a fraction p/13 in lowest terms, what is the largest possible number of digits in the repeating block?

    1. 13
    2. 6
    3. 26
    4. 12
    Show answer

    Answer: D. When dividing by 13, the only non-zero remainders possible are 1 to 12, so the repeating string of remainders, and hence of digits, has at most 12 entries. (1/13 itself repeats a block of 6: 0.076923076923....)

  4. 4. Which fraction equals 0.68181... (only 81 repeating)?

    1. 68/99
    2. 15/22
    3. 675/1000
    4. 3/4
    Show answer

    Answer: B. Let x = 0.68181.... Then 10x = 6.8181... and 1000x = 681.8181.... Subtracting, 990x = 675, so x = 675/990 = 15/22. Check: 15/22 = 0.6 + 1.8/22 = 0.6 + 0.08181... = 0.68181....

  5. 5. Which number is irrational?

    1. 0.303030... (30 repeating)
    2. 0.3030
    3. 0.303003000300003...
    4. 30/99
    Show answer

    Answer: C. 0.303003000300003... never ends, and because the runs of zeros keep growing, no block repeats; so it is irrational. 0.3030 terminates, and 0.3030... (repeating) equals 30/99, so both are rational.

Privacy · Terms · Refunds · Delivery