Expresswala Academy Mathematics Tuition

The World of Numbers (Class 9)

Real Numbers, Decimals and Cyclic Patterns, Class 9

Why fractions give terminating or repeating decimals, how to predict which from the denominator, how to convert repeating decimals to fractions, and the cyclic number hidden in one seventh.

By 9 min read

Put the ratio­nal num­bers and the irra­tional num­bers together and you get the real num­bers, R\mathbb{R}: a con­tin­u­ous line with no gaps. The quick­est way to tell which kind a real num­ber is, is to look at its dec­i­mal expan­sion. This les­son shows why frac­tions give dec­i­mals that stop or repeat, how to pre­dict which, how to turn a repeat­ing dec­i­mal back into a frac­tion, and the sur­pris­ing pat­terns hid­den inside 17\displaystyle \frac{1}{7}.

Dec­i­mals of ratio­nal num­bers

Two pos­si­ble out­comes

Divide the numer­a­tor of a frac­tion by its denom­i­na­tor. Exactly one of two things hap­pens:

  1. The dec­i­mal ter­mi­nates. At some step the remain­der is 00 and the divi­sion stops. Exam­ple: 38=0.375\displaystyle \frac{3}{8} = 0.375.
  2. The dec­i­mal repeats. The remain­der is never 00, and from some point a block of dig­its repeats for ever. Exam­ple: 511=0.454545…=0.45‾\displaystyle \frac{5}{11} = 0.454545\ldots = 0.\overline{45}. The bar marks the repeat­ing block.

Try the book's two cases. 103=3.333…=3.3‾\displaystyle \frac{10}{3} = 3.333\ldots = 3.\overline{3}: the digit 3 repeats straight after the dec­i­mal point. 1112=0.91666…=0.916‾\displaystyle \frac{11}{12} = 0.91666\ldots = 0.91\overline{6}: the dig­its 9 and 1 appear once, and only then does 6 repeat. So a repeat­ing block need not start right after the point.

Why the dig­its must repeat

Think about the long divi­sion for 17\displaystyle \frac{1}{7}. At each step we divide by 7, so the remain­der is one of 0,1,2,3,4,5,60, 1, 2, 3, 4, 5, 6. It is never 00 here: a zero remain­der would make the dec­i­mal stop, which would mean 17\displaystyle \frac{1}{7} equals some frac­tion over a power of 10, and that is impos­si­ble since 7 does not divide any power of 10. So only six remain­ders are pos­si­ble, 11 to 66. Within at most seven steps some remain­der must come back. From then on the divi­sion repeats the very same steps, so the dig­its repeat too.

For 17\displaystyle \frac{1}{7} the remain­ders run 1,3,2,6,4,51, 3, 2, 6, 4, 5 and then 11 again, giv­ing the dig­its 1,4,2,8,5,71, 4, 2, 8, 5, 7:

17=0.142857‾\displaystyle \frac{1}{7} = 0.\overline{142857}

Hexagon of remainders 1, 3, 2, 6, 4, 5 joined by arrows labelled with quotient digits 1, 4, 2, 8, 5, 7, returning to remainder 1
The remain­der cycle for 1÷71 \div 7: after six steps remain­der 1 returns, so 17=0.142857‾\displaystyle \frac{1}{7} = 0.\overline{142857}.

The same argu­ment works for any denom­i­na­tor qq: there are at most q−1q - 1 non-zero remain­ders, so a repeat­ing block can never be longer than q−1q - 1 dig­its.

Pre­dict­ing the type of dec­i­mal

Look at the denom­i­na­tor's prime fac­tors

Write the frac­tion pq\displaystyle \frac{p}{q} in low­est terms. Then:

The dec­i­mal ter­mi­nates exactly when the only prime fac­tors of qq are 2 and/or 5.

Why? A ter­mi­nat­ing dec­i­mal is a frac­tion over a power of 10, and 10n=2n×5n10^n = 2^n \times 5^n. If qq uses only 2s and 5s, mul­ti­ply top and bot­tom by enough 2s or 5s to bal­ance them, and the denom­i­na­tor becomes a power of 10. For exam­ple 20=22×520 = 2^2 \times 5, so

320=322×5=3×522×52=15100=0.15\displaystyle \frac{3}{20} = \frac{3}{2^2 \times 5} = \frac{3 \times 5}{2^2 \times 5^2} = \frac{15}{100} = 0.15

If qq has any other prime fac­tor, say 3 or 7, then no mul­ti­pli­ca­tion can make qq into a power of 10 (a power of 10 has no fac­tor other than 2 and 5), and since pp and qq share no fac­tor the extra prime can­not can­cel. So the dec­i­mal can­not stop, and it repeats.

The num­ber of dec­i­mal places is the larger of the two pow­ers. With q=2a×5bq = 2^a \times 5^b in low­est terms, the dec­i­mal has exactly the larger of aa and bb places.

Worked exam­ple 1

Does 716\displaystyle \frac{7}{16} ter­mi­nate? If so, find it.

16=2416 = 2^4, only 2s, so it ter­mi­nates, with 4 dec­i­mal places. Mul­ti­ply by 54=6255^4 = 625:

716=7×62524×54=437510000=0.4375\displaystyle \frac{7}{16} = \frac{7 \times 625}{2^4 \times 5^4} = \frac{4375}{10000} = 0.4375

Worked exam­ple 2

Does 512\displaystyle \frac{5}{12} ter­mi­nate?

12=22×312 = 2^2 \times 3. The fac­tor 3 means it does not ter­mi­nate. Long divi­sion gives 0.41666…=0.416‾0.41666\ldots = 0.41\overline{6}.

Turn­ing dec­i­mals back into frac­tions

Ter­mi­nat­ing dec­i­mals

Read the dec­i­mal as a frac­tion over a power of 10 and sim­plify. For exam­ple 0.64=64100=1625\displaystyle 0.64 = \frac{64}{100} = \frac{16}{25}.

Pure repeat­ing dec­i­mals

A pure repeat­ing dec­i­mal repeats straight after the dec­i­mal point, like 0.6‾0.\overline{6} or 0.45‾0.\overline{45}. The idea: mul­ti­ply by a power of 10 that shifts the dec­i­mal by one full block, then sub­tract so the end­less tails can­cel. For x=0.6‾x = 0.\overline{6}: 10x=6.6‾10x = 6.\overline{6}, so 10x−x=610x - x = 6, giv­ing 9x=69x = 6 and x=23\displaystyle x = \frac{2}{3}.

Worked exam­ple 3

Write 0.27‾0.\overline{27} as pq\displaystyle \frac{p}{q}.

x=0.272727…100x=27.272727…100x−x=2799x=27x=2799=311\displaystyle \begin{aligned} x &= 0.272727\ldots \\ 100x &= 27.272727\ldots \\ 100x - x &= 27 \\ 99x &= 27 \\ x &= \frac{27}{99} = \frac{3}{11} \end{aligned}

Two dig­its repeat, so we mul­ti­plied by 10210^2.

Gen­eral repeat­ing dec­i­mals

A gen­eral repeat­ing dec­i­mal has some dig­its that do not repeat before the repeat­ing block, like 0.16‾0.1\overline{6}. Now use two shifts: first move the non-repeat­ing dig­its in front of the point, then move one more full block, and sub­tract the two. For x=0.16‾x = 0.1\overline{6}: 10x=1.6‾10x = 1.\overline{6} and 100x=16.6‾100x = 16.\overline{6}, so 90x=1590x = 15 and x=16\displaystyle x = \frac{1}{6}.

Worked exam­ple 4

Write 0.38‾0.3\overline{8} as pq\displaystyle \frac{p}{q}.

10x=3.888…100x=38.888…100x−10x=38−390x=35x=3590=718\displaystyle \begin{aligned} 10x &= 3.888\ldots \\ 100x &= 38.888\ldots \\ 100x - 10x &= 38 - 3 \\ 90x &= 35 \\ x &= \frac{35}{90} = \frac{7}{18} \end{aligned}

Worked exam­ple 5

Write 1.245‾1.2\overline{45} as pq\displaystyle \frac{p}{q}. One digit (2) does not repeat and two dig­its (45) repeat.

10x=12.454545…1000x=1245.454545…1000x−10x=1245−12990x=1233x=1233990=137110\displaystyle \begin{aligned} 10x &= 12.454545\ldots \\ 1000x &= 1245.454545\ldots \\ 1000x - 10x &= 1245 - 12 \\ 990x &= 1233 \\ x &= \frac{1233}{990} = \frac{137}{110} \end{aligned}

Check: 137÷110=1.24545…137 \div 110 = 1.24545\ldots as required. The book's exam­ples 2.357‾=1061450\displaystyle 2.35\overline{7} = \frac{1061}{450} and 2.4537‾=60732475\displaystyle 2.45\overline{37} = \frac{6073}{2475} fol­low the same two-shift pat­tern.

Sum­mary of the method

Dec­i­mal typeSteps
Ter­mi­nat­ingWrite over a power of 10 and sim­plify.
Pure repeat­ing, nn dig­its repeatLet xx be the num­ber; mul­ti­ply by 10n10^n; sub­tract xx; solve.
Gen­eral repeat­ing, mm dig­its do not repeat, nn dig­its repeatMul­ti­ply by 10m10^m; mul­ti­ply that by 10n10^n; sub­tract the first from the sec­ond; solve.

Two dec­i­mal names for one num­ber

Let x=0.9‾x = 0.\overline{9}. Then 10x=9.9‾10x = 9.\overline{9}, so 10x−x=910x - x = 9, 9x=99x = 9 and x=1x = 1. So 0.999…0.999\ldots is exactly 11, not a lit­tle less. In the same way every ter­mi­nat­ing dec­i­mal has a sec­ond form end­ing in repeat­ing 9s: 2.47=2.469‾2.47 = 2.46\overline{9}. This is like writ­ing 11 as 1010\displaystyle \frac{10}{10}: one num­ber, two names.

Cyclic num­bers

The magic of 142857

The repeat­ing block of 17\displaystyle \frac{1}{7} is 142857142857. Mul­ti­ply it by 11 to 66:

142857×1=142857142857×2=285714142857×3=428571142857×4=571428142857×5=714285142857×6=857142\begin{aligned} 142857 \times 1 &= 142857 \\ 142857 \times 2 &= 285714 \\ 142857 \times 3 &= 428571 \\ 142857 \times 4 &= 571428 \\ 142857 \times 5 &= 714285 \\ 142857 \times 6 &= 857142 \end{aligned}

Every answer uses the same six dig­its in the same cir­cu­lar order, just start­ing at a dif­fer­ent place. A num­ber with this prop­erty is called a cyclic num­ber. The rea­son is the remain­der cycle: 27\displaystyle \frac{2}{7} starts its divi­sion at remain­der 2, which is already on the loop 1,3,2,6,4,51, 3, 2, 6, 4, 5, so its dig­its are the same loop begun at a dif­fer­ent point.

Worked exam­ple 6

Find 27\displaystyle \frac{2}{7} with­out new divi­sion, and test whether 113\displaystyle \frac{1}{13} behaves the same way.

In the loop for 17\displaystyle \frac{1}{7}, remain­der 2 is fol­lowed by dig­its 2,8,5,7,1,42, 8, 5, 7, 1, 4. So 27=0.285714‾\displaystyle \frac{2}{7} = 0.\overline{285714}, which matches 142857×2142857 \times 2.

For 13: 113=0.076923‾\displaystyle \frac{1}{13} = 0.\overline{076923}, but 213=0.153846‾\displaystyle \frac{2}{13} = 0.\overline{153846}, which uses dif­fer­ent dig­its. Divid­ing by 13 has twelve pos­si­ble non-zero remain­ders, but the loop for 113\displaystyle \frac{1}{13} vis­its only six of them, so the frac­tions split into two sep­a­rate cycles. A block is cyclic only when its loop passes through every remain­der from 11 to q−1q - 1. This hap­pens for q=7,17,19,23,29q = 7, 17, 19, 23, 29 among small num­bers; for exam­ple 117=0.0588235294117647‾\displaystyle \frac{1}{17} = 0.\overline{0588235294117647} has a 16-digit cyclic block.

Dec­i­mals of irra­tional num­bers

No end, no repeat

Because every ratio­nal num­ber ter­mi­nates or repeats, a dec­i­mal that does nei­ther must be irra­tional. Irra­tional num­bers have dec­i­mals that never stop and never set­tle into a repeat­ing block:

2=1.4142135623730950488…,π=3.1415926535897932384…\sqrt{2} = 1.4142135623730950488\ldots, \qquad \pi = 3.1415926535897932384\ldots

A dec­i­mal can have a clear pat­tern and still be irra­tional. In 1.01001000100001…1.01001000100001\ldots the runs of zeros keep get­ting longer, so no fixed block ever repeats; the num­ber is irra­tional.

The fam­ily of num­bers, and beyond

How the num­ber sys­tem grew

  • Nat­ural num­bers N\mathbb{N}: 1,2,3,…1, 2, 3, \ldots, all of them inte­gers.
  • Inte­gers Z\mathbb{Z}: add zero and the neg­a­tives; all of them ratio­nal.
  • Ratio­nal num­bers Q\mathbb{Q}: all pq\displaystyle \frac{p}{q} with q≠0q \neq 0; exactly the ter­mi­nat­ing and repeat­ing dec­i­mals.
  • Irra­tional num­bers: num­bers such as 2\sqrt{2}, 10\sqrt{10} and π\pi that are not frac­tions; their dec­i­mals nei­ther stop nor repeat. No num­ber is both ratio­nal and irra­tional.
  • Real num­bers R\mathbb{R}: ratio­nals and irra­tionals together, fill­ing the whole num­ber line. Every length and every mea­sured tem­per­a­ture has a place on it.
Nested boxes: natural numbers inside integers inside rational numbers, with a separate irrational box, all inside the real numbers box
Nat­ural num­bers sit inside the inte­gers, which sit inside the ratio­nals; ratio­nals and irra­tionals together make the real num­bers.

A num­ber off the line

What is −1\sqrt{-1}? We know 1×1=11 \times 1 = 1 and (−1)×(−1)=1(-1) \times (-1) = 1. In fact any real num­ber times itself is pos­i­tive or zero, so no real num­ber squares to −1-1, and −1\sqrt{-1} has no point on the num­ber line. Math­e­mati­cians there­fore cre­ated a new kind of num­ber, writ­ten with the let­ter ii, called an imag­i­nary num­ber. Such num­bers are used in elec­tri­cal engi­neer­ing, quan­tum mechan­ics and the tech­nol­ogy in mobile phones. You will meet them in later years.

Com­mon mis­takes

  • Decid­ing the dec­i­mal type before reduc­ing the frac­tion. 36\displaystyle \frac{3}{6} has a 6 below, but it equals 12=0.5\displaystyle \frac{1}{2} = 0.5, which ter­mi­nates.
  • Mul­ti­ply­ing by 10 when two dig­its repeat. For 0.27‾0.\overline{27} you need 100x100x.
  • In gen­eral repeat­ing dec­i­mals, sub­tract­ing xx instead of the first shifted equa­tion, which leaves an untidy tail.
  • Believ­ing 0.9‾0.\overline{9} is slightly less than 1. It equals 1 exactly.
  • Call­ing any long dec­i­mal irra­tional. 0.123456789‾0.\overline{123456789} is long but repeats, so it is ratio­nal.
  • Treat­ing 227\displaystyle \frac{22}{7} as π\pi. It is a ratio­nal approx­i­ma­tion only.

Try these

  1. Does 940\displaystyle \frac{9}{40} ter­mi­nate? If so, write it as a dec­i­mal. Answer: Yes, 40=23×540 = 2^3 \times 5; 0.2250.225
  2. Write 0.81‾0.\overline{81} as a frac­tion in low­est terms. Answer: 911\displaystyle \frac{9}{11}
  3. Write 0.27‾0.2\overline{7} as a frac­tion in low­est terms. Answer: 518\displaystyle \frac{5}{18}
  4. Find the repeat­ing block of 313\displaystyle \frac{3}{13}. Answer: 230769230769
  5. How many dec­i­mal places does 1722×53\displaystyle \frac{17}{2^2 \times 5^3} have? Answer: 3 (it equals 0.0340.034)
  6. Is 0.12345678910111213…0.12345678910111213\ldots (the count­ing num­bers writ­ten one after another) ratio­nal? Answer: No. Writ­ing 10, 100, 1000, and so on puts longer and longer runs of zeros into it, so no block can repeat for ever; it is irra­tional

Key terms

Real num­bers
All ratio­nal and irra­tional num­bers together, writ­ten R\mathbb{R}; they fill the num­ber line.
Ter­mi­nat­ing dec­i­mal
A dec­i­mal that stops after a finite num­ber of dig­its, such as 0.3750.375.
Repeat­ing dec­i­mal
A dec­i­mal in which a block of dig­its repeats for ever, writ­ten with a bar, such as 0.45‾0.\overline{45}.
Pure repeat­ing dec­i­mal
A repeat­ing dec­i­mal whose block starts right after the dec­i­mal point.
Gen­eral repeat­ing dec­i­mal
A repeat­ing dec­i­mal with some non-repeat­ing dig­its before the repeat­ing block.
Cyclic num­ber
A num­ber such as 142857 whose mul­ti­ples by 1, 2, and so on keep the same dig­its in the same cir­cu­lar order.
Imag­i­nary num­ber
A num­ber, built from ii with i×i=−1i \times i = -1, that does not lie on the real num­ber line.

Com­mon ques­tions

How can I tell if a frac­tion ter­mi­nates with­out divid­ing?

Reduce it to low­est terms and fac­torise the denom­i­na­tor. If the only primes are 2 and 5, it ter­mi­nates; oth­er­wise it repeats.

Is 0.999... really equal to 1?

Yes. If x=0.9‾x = 0.\overline{9}, then 10x−x=910x - x = 9, so x=1x = 1. The two dec­i­mals are two names for the same num­ber.

Why is 1/7 called spe­cial?

Its repeat­ing block 142857 is a cyclic num­ber: mul­ti­ply­ing it by 2, 3, 4, 5 or 6 just rotates its dig­its.

Can a dec­i­mal with a pat­tern be irra­tional?

Yes. 1.01001000100001…1.01001000100001\ldots has a clear rule, but no fixed block repeats, so it is irra­tional.

Is every real num­ber either ratio­nal or irra­tional?

Yes. Every real num­ber is exactly one of the two.

Ref­er­ences

  1. National Coun­cil of Edu­ca­tional Research and Train­ing. Ganita Man­jari: Text­book of Math­e­mat­ics, Grade 9 (Part I). NCERT, New Delhi.
  2. Hardy, G. H. and Wright, E. M. An Intro­duc­tion to the The­ory of Num­bers. Oxford Uni­ver­sity Press.
  3. Bur­ton, D. M. Ele­men­tary Num­ber The­ory. McGraw-Hill Edu­ca­tion.