Math Lab
Home/Class VIII/Ch 3/Rational numbers and their decimals

Rational numbers and their decimals

Once integers existed, dividing 77 apples among 33 children was no longer "impossible" , but the answer was no longer an integer either. The world of integers had to be enlarged to include fractions, like 73\frac{7}{3}. Together with their negatives and with 00, these make the rational numbers.

Concept

A number is rational if it can be written in the form

pq,p,qZ,q0.\dfrac{p}{q}, \quad p, q \in \mathbb{Z}, \quad q \ne 0.

Every integer is rational (because 5=515 = \frac{5}{1}). Every terminating decimal is rational (0.75=340.75 = \frac{3}{4}). Every recurring decimal is rational too , we will see why in a moment.

Equivalent fractions. Multiplying or dividing the top and bottom of a fraction by the same non-zero number gives an equal fraction: 34=68=1520\frac{3}{4} = \frac{6}{8} = \frac{15}{20}. The simplest form (where pp and qq have no common factor) is unique.

On the number line. Every rational number has a definite home between two integers. To plot 73\frac{7}{3}, mark 22 and 33, divide the gap into 33 equal parts, and the marker after the second part is 73=213\frac{7}{3} = 2\frac{1}{3}.

Decimal expansions of rationals. Convert by long division:

34=0.75,13=0.333=0.3,27=0.285714.\tfrac{3}{4} = 0.75, \quad \tfrac{1}{3} = 0.333\dots = 0.\overline{3}, \quad \tfrac{2}{7} = 0.\overline{285714}.

There are exactly two possibilities:

  1. The decimal terminates (0.750.75). This happens precisely when the denominator (in simplest form) has only the prime factors 22 and 55. So 38\tfrac{3}{8} terminates because 8=238 = 2^3. 720\tfrac{7}{20} terminates because 20=22×520 = 2^2 \times 5. But 16\tfrac{1}{6} does not, because 6=2×36 = 2 \times 3 contains a 33.

  2. The decimal recurs with a repeating block (0.30.\overline{3}, 0.1428570.\overline{142857}). The length of the repeat is at most q1q - 1 where qq is the denominator.

So every rational gives a predictable decimal (terminating or recurring), and the rule for which type involves the prime factors of the denominator.

Going backwards. A terminating decimal becomes a fraction easily: 0.625=6251000=580.625 = \frac{625}{1000} = \frac{5}{8}. Recurring decimals take a clever trick. To convert x=0.27x = 0.\overline{27}:

100x=27.27,100xx=2799x=27x=2799=311.100x = 27.\overline{27}, \quad 100x - x = 27 \Rightarrow 99x = 27 \Rightarrow x = \tfrac{27}{99} = \tfrac{3}{11}.

Density. Between any two rationals there are infinitely many other rationals. The simplest way to find one between 13\tfrac{1}{3} and 12\tfrac{1}{2} is to take their average: 12(13+12)=512\tfrac{1}{2}(\tfrac{1}{3} + \tfrac{1}{2}) = \tfrac{5}{12}.

Worked examples

Example 1. Reduce 84120\dfrac{84}{120} to lowest terms.

  • gcd(84,120)=12\gcd(84, 120) = 12.
  • 84120=710\dfrac{84}{120} = \dfrac{7}{10}.

Example 2. Without dividing, will 1740\dfrac{17}{40} have a terminating decimal?

  • 40=23×540 = 2^3 \times 5. Only 22's and 55's. So yes, it terminates.
  • (In fact 1740=0.425\tfrac{17}{40} = 0.425.)

Example 3. Convert 0.60.\overline{6} to a fraction.

  • Let x=0.6x = 0.\overline{6}. Then 10x=6.610x = 6.\overline{6}.
  • Subtract: 9x=6x=69=239x = 6 \Rightarrow x = \tfrac{6}{9} = \tfrac{2}{3}.

Example 4. Insert a rational number between 25\dfrac{2}{5} and 35\dfrac{3}{5}.

  • Average: 12(25+35)=121=12\tfrac{1}{2}\left(\tfrac{2}{5} + \tfrac{3}{5}\right) = \tfrac{1}{2} \cdot 1 = \tfrac{1}{2}.

Try it yourself

  1. Reduce 126210\dfrac{126}{210} to lowest terms.
  2. Which of these have terminating decimals: 78,512,11125,415\dfrac{7}{8}, \dfrac{5}{12}, \dfrac{11}{125}, \dfrac{4}{15}?
  3. Convert 56\dfrac{5}{6} to its decimal form.
  4. Convert 0.30.\overline{3} and 0.180.\overline{18} to fractions.
  5. Insert two rationals between 14\dfrac{1}{4} and 12\dfrac{1}{2}.
  6. Plot 114\dfrac{11}{4} and 73-\dfrac{7}{3} on a number line.
  7. Find a rational between 23-\dfrac{2}{3} and 12-\dfrac{1}{2}.
  8. Is 0.1212120.121212\dots rational? If yes, write it as a fraction.

Activity

Decimal detective. Pick any prime p2,5p \ne 2, 5. Compute 1p\frac{1}{p} as a decimal by long division until it starts repeating. Try p=7p = 7: 17=0.142857\frac{1}{7} = 0.\overline{142857}. The repeating block has 66 digits. Now try 27,37,,67\frac{2}{7}, \frac{3}{7}, \dots, \frac{6}{7}. You will find the same block, just rotated. This is a beautiful theorem about cyclic numbers, and it works for many primes.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Rational numbers and decimals
5 questions · pick the best answer
Q1

4256\dfrac{42}{56} in lowest terms is

Q2

Which has a terminating decimal expansion?

Q3

Convert 0.450.\overline{45} to a fraction in lowest terms.

Q4

A rational between 13\dfrac{1}{3} and 12\dfrac{1}{2} is

Q5

56\dfrac{5}{6} as a decimal is