Why Every Fraction Terminates or Recurs

Only so many remainders are available.

Decimals that stop, and decimals that repeat

Every fraction has a decimal, found by dividing the numerator by the denominator. 1/8 = 1 ÷ 8 = 0.125, and the division stops after 3 decimal places. A decimal that stops is called a terminating decimal.

1/3 = 1 ÷ 3 = 0.333…, and the division never stops: the digit 3 repeats forever. A decimal in which a block of digits repeats forever is called a recurring decimal. In print, a dot or a bar over the repeating digits marks the repeat.

These are the only two possibilities: the decimal of every fraction either terminates or recurs, and the denominator decides which.

81.0000.125

1 ÷ 8 = 0.125. After three decimal places nothing is left to divide.

Follow the remainders

Long division makes each decimal digit in the same way: take the remainder, multiply it by 10 (bring down a 0), divide by the denominator, and keep the new remainder.

For 1 ÷ 8 the remainder starts at 1. Then 10 ÷ 8 = 1 remainder 2, 20 ÷ 8 = 2 remainder 4, and 40 ÷ 8 = 5 remainder 0. The digits are 1, 2 and 5, and the remainders are 1, 2, 4 and then 0. A remainder of 0 means nothing is left to divide, so every later digit would be 0, and the decimal stops: 0.125.

remainders of 1 ÷ 812512400.125

The remainders of 1 ÷ 8 run 1, 2, 4, then 0. The digit on each arrow is the digit that step writes, and at 0 the digits stop.

Why a remainder must come back

Now divide 1 by 7. The remainders are 1, 3, 2, 6, 4 and 5, and then 1 again. The digits are 1, 4, 2, 8, 5 and 7, so 1/7 = 0.142857142857…

The 1 had to come back. Dividing by 7 can only leave the remainders 0, 1, 2, 3, 4, 5 and 6. Here the remainder is never 0, so every remainder is one of the six numbers 1 to 6. The first seven remainders are seven numbers chosen from only six, so two of them must be equal.

Each step depends only on the remainder it starts from. So once a remainder comes back, the same digits and the same remainders follow in the same order, forever. The digits recur, and the repeating block of 1/7 is at most 6 digits long. It is exactly 6: 142857.

The same argument works for any denominator. Dividing by a number d, either a remainder of 0 comes and the decimal terminates, or it never does. Then every remainder is one of the d − 1 numbers from 1 to d − 1, so within d steps a remainder must come back, and the decimal recurs. Nothing else can happen.

remainders of 1 ÷ 71428571326450.142857142857…six remainders, and 0 is never one of them

The remainders of 1 ÷ 7 are 1, 3, 2, 6, 4 and 5, and the next one is 1 again, so the digits 142857 repeat.

The repeat does not have to start with the first digit. 1 ÷ 6: 10 ÷ 6 = 1 remainder 4, then 40 ÷ 6 = 6 remainder 4. The remainder 4 has come back after one step, so 1/6 = 0.1666…, with a 1 that happens once and then a 6 that repeats forever.

remainders of 1 ÷ 616140.166…

The remainders of 1 ÷ 6 are 1 and then 4, and 4 comes back at once. The 1 is written once and the 6 repeats: 1/6 = 0.1666…

Which fractions terminate

A terminating decimal is a number of tenths, hundredths, thousandths and so on: 0.125 = 125/1000. So a fraction terminates when it can be written with a power of 10 as its denominator.

Every power of 10 is built from 2s and 5s only, because 10 = 2 × 5. For example, 1000 = 2³ × 5³. So a denominator made only of 2s and 5s can always be made into a power of 10: multiply the top and the bottom by whatever 2s or 5s are missing. 8 = 2³, so multiply by 5³ = 125: 1/8 = 125/1000 = 0.125. And 20 = 2² × 5, so multiply by 5: 7/20 = 35/100 = 0.35.

82057612built from2³2² × 5572 × 32² × 3digitsstopstopstoprecurrecurrecur

Denominators built only from 2s and 5s give decimals that stop. A denominator with any other prime factor gives a decimal that recurs.

Why no other prime ever clears

Take 5/12, which is in lowest terms, and 12 = 2² × 3. Suppose its decimal terminated. Then 5/12 would be equal to a whole number over a power of 10, say 5/12 = n/1000. Multiply both sides by 12 and by 1000: 5 × 1000 = 12 × n.

The prime 3 is a factor of 12 × n, so it appears in the prime factorization of that number. But 5 × 1000 is the same number, and its prime factorization is 2³ × 5⁴, with no 3 in it: 1000 is made of 2s and 5s only, and the numerator 5 has no factor 3, because 5/12 is in lowest terms. By the Fundamental Theorem of Arithmetic a number has only one prime factorization, so this is impossible. The same happens with 10000 or any other power of 10, so 5/12 recurs: 5/12 = 0.41666…

Lowest terms matters. In 3/12 the 3 in the denominator is canceled by the 3 in the numerator, and 3/12 = 1/4 = 0.25, which terminates. So a fraction in lowest terms terminates exactly when its denominator has no prime factors other than 2 and 5.

1/6 = 0.16…repeats every 16 = 2 × 33 divides no power of 10, so 1/d ≠ tenths, hundredths, …d = 6

1/6 never stops: 6 has the factor 3, which divides no power of 10, so the remainders cycle and the digits repeat every 1

Slide d to 16 and read why 1/16 stops

The slider opens at 1/6 = 0.1666…: 6 = 2 × 3, and the 3 divides no power of 10, so the 6 repeats. Slide d to 16: 16 = 2⁴ divides 10⁴ = 10000, and 1/16 = 0.0625 stops.

How many decimal places

The number of decimal places in a terminating decimal can be read from the denominator too. To reach a power of 10, the denominator needs as many 5s as 2s. 40 = 2³ × 5 has three 2s and one 5, so multiply the top and the bottom by two more 5s, which is 25: 7/40 = 175/1000 = 0.175. The power of 10 is 10³, so the decimal has 3 places.

16 = 2⁴ needs four 5s, which is 5⁴ = 625: 1/16 = 625/10000 = 0.0625, with 4 places. The number of places is the larger of the two powers of 2 and 5 in the denominator.

Worked example: Which Masses a Digital Scale Can Show Exactly

Question A workshop scale shows a mass in kilograms as a decimal, and it shows the mass exactly only when the decimal terminates. Four parts have masses of 740 kg, 512 kg, 9625 kg and 415 kg. (a) Without dividing, decide which of the four masses the scale can show exactly. (b) For each of those masses, find the decimal and the number of decimal places that the scale needs.

  1. 1.Check that each fraction is in its lowest terms, then write each denominator as a product of prime factors: 40 = 23 × 5, 12 = 22 × 3, 625 = 54 and 15 = 3 × 5.

    massdenominatordecimal7/4040 = 23× 55/1212 = 22× 39/625625 = 544/1515 = 3 × 510 = 2 × 5: only the primes 2 and 5 can make a power of 10
    massdenominatordecimal7/4040 = 23× 55/1212 = 22× 39/625625 = 544/1515 = 3 × 510 = 2 × 5: only the primes 2 and 5 can make a power of 10
    40 = 23 × 5, 12 = 22 × 3, 625 = 54 and 15 = 3 × 5.
  2. 2.(a) The denominators 40 and 625 have no prime factors other than 2 and 5, so 740 and 9625 terminate. The denominators 12 and 15 have the prime factor 3, so 512 and 415 recur.

    massdenominatordecimal7/4040 = 23× 5terminates5/1212 = 22× 3recurs9/625625 = 54terminates4/1515 = 3 × 5recursa factor of 3 can never make a power of 10
    massdenominatordecimal7/4040 = 23× 5terminates5/1212 = 22× 3recurs9/625625 = 54terminates4/1515 = 3 × 5recursa factor of 3 can never make a power of 10
    (a) 740 and 9625 terminate. The factor 3 makes 512 and 415 recur.
  3. 3.For 740, make the denominator a power of 10. Since 40 = 23 × 5, two more factors of 5 are needed: 7 × 2540 × 25 = 1751000 = 0.175.

    massdenominatordecimal7/4040 = 23× 5175/1000 = 0.1755/1212 = 22× 3recurs9/625625 = 54terminates4/1515 = 3 × 5recurs40 × 25 = 1000, and 7 × 25 = 175
    massdenominatordecimal7/4040 = 23× 5175/1000 = 0.1755/1212 = 22× 3recurs9/625625 = 54terminates4/1515 = 3 × 5recurs40 × 25 = 1000, and 7 × 25 = 175
    Two more factors of 5 make the denominator 1000: 740 = 1751000 = 0.175.
  4. 4.For 9625, four factors of 2 are needed, because 625 = 54: 9 × 16625 × 16 = 14410000 = 0.0144.

    massdenominatordecimal7/4040 = 23× 5175/1000 = 0.1755/1212 = 22× 3recurs9/625625 = 54144/10000 = 0.01444/1515 = 3 × 5recurs625 × 16 = 10000, and 9 × 16 = 144
    massdenominatordecimal7/4040 = 23× 5175/1000 = 0.1755/1212 = 22× 3recurs9/625625 = 54144/10000 = 0.01444/1515 = 3 × 5recurs625 × 16 = 10000, and 9 × 16 = 144
    Four factors of 2 make the denominator 10000: 9625 = 14410000 = 0.0144.
  5. 5.(b) The number of decimal places is the larger of the two indices of 2 and 5 in the denominator: 0.175 has 3 decimal places and 0.0144 has 4. Check by division: 512 = 0.41666… and 415 = 0.2666…, which both recur.

    massdenominatordecimal7/4040 = 23× 50.175: 3 places5/1212 = 22× 3recurs9/625625 = 540.0144: 4 places4/1515 = 3 × 5recursthe larger index is the number of places
    massdenominatordecimal7/4040 = 23× 50.175: 3 places5/1212 = 22× 3recurs9/625625 = 540.0144: 4 places4/1515 = 3 × 5recursthe larger index is the number of places
    (b) 0.175 has 3 decimal places and 0.0144 has 4: the larger index of 2 and 5 in the denominator.

Answer: (a) 740 and 9625 terminate, and 512 and 415 recur; (b) 740 = 0.175, with 3 decimal places, and 9625 = 0.0144, with 4 decimal places

Common mistakes

  • Deciding before the fraction is in its lowest terms. The fraction 615 has a factor of 3 in its denominator, but 615 = 25 = 0.4, which terminates. The rule applies to the denominator after every common factor has been canceled.
  • Saying that 9625 recurs because 625 is odd. A denominator does not have to be even. It has to be free of every prime factor except 2 and 5, and 625 = 5 × 5 × 5 × 5 is.

More number theory problems, worked step by step →

The usual mistakes

Deciding before the fraction is in lowest terms. 6/15 has a 3 in its denominator, but 6/15 = 2/5 = 0.4.

Thinking that an odd denominator means a recurring decimal. 625 is odd, but 625 = 5⁴, so 9/625 = 0.0144 terminates.

Calling a long decimal recurring. 1/64 = 0.015625 has six decimal places and stops, because 64 = 2⁶.

Practice Why Every Fraction Terminates or Recurs in the app