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.
Put the rational numbers and the irrational numbers together and you get the real numbers, R: a continuous line with no gaps. The quickest way to tell which kind a real number is, is to look at its decimal expansion. This lesson shows why fractions give decimals that stop or repeat, how to predict which, how to turn a repeating decimal back into a fraction, and the surprising patterns hidden inside 71.
Decimals of rational numbers
Two possible outcomes
Divide the numerator of a fraction by its denominator. Exactly one of two things happens:
The decimal terminates. At some step the remainder is 0 and the division stops. Example: 83=0.375.
The decimal repeats. The remainder is never 0, and from some point a block of digits repeats for ever. Example: 115=0.454545…=0.45. The bar marks the repeating block.
Try the book's two cases. 310=3.333…=3.3: the digit 3 repeats straight after the decimal point. 1211=0.91666…=0.916: the digits 9 and 1 appear once, and only then does 6 repeat. So a repeating block need not start right after the point.
Why the digits must repeat
Think about the long division for 71. At each step we divide by 7, so the remainder is one of 0,1,2,3,4,5,6. It is never 0 here: a zero remainder would make the decimal stop, which would mean 71 equals some fraction over a power of 10, and that is impossible since 7 does not divide any power of 10. So only six remainders are possible, 1 to 6. Within at most seven steps some remainder must come back. From then on the division repeats the very same steps, so the digits repeat too.
For 71 the remainders run 1,3,2,6,4,5 and then 1 again, giving the digits 1,4,2,8,5,7:
71=0.142857
The remainder cycle for 1÷7: after six steps remainder 1 returns, so 71=0.142857.
The same argument works for any denominator q: there are at most q−1 non-zero remainders, so a repeating block can never be longer than q−1 digits.
Predicting the type of decimal
Look at the denominator's prime factors
Write the fraction qp in lowest terms. Then:
The decimal terminates exactly when the only prime factors of q are 2 and/or 5.
Why? A terminating decimal is a fraction over a power of 10, and 10n=2n×5n. If q uses only 2s and 5s, multiply top and bottom by enough 2s or 5s to balance them, and the denominator becomes a power of 10. For example 20=22×5, so
203=22×53=22×523×5=10015=0.15
If q has any other prime factor, say 3 or 7, then no multiplication can make q into a power of 10 (a power of 10 has no factor other than 2 and 5), and since p and q share no factor the extra prime cannot cancel. So the decimal cannot stop, and it repeats.
The number of decimal places is the larger of the two powers. With q=2a×5b in lowest terms, the decimal has exactly the larger of a and b places.
Worked example 1
Does 167 terminate? If so, find it.
16=24, only 2s, so it terminates, with 4 decimal places. Multiply by 54=625:
167=24×547×625=100004375=0.4375
Worked example 2
Does 125 terminate?
12=22×3. The factor 3 means it does not terminate. Long division gives 0.41666…=0.416.
Turning decimals back into fractions
Terminating decimals
Read the decimal as a fraction over a power of 10 and simplify. For example 0.64=10064=2516.
Pure repeating decimals
A pure repeating decimal repeats straight after the decimal point, like 0.6 or 0.45. The idea: multiply by a power of 10 that shifts the decimal by one full block, then subtract so the endless tails cancel. For x=0.6: 10x=6.6, so 10x−x=6, giving 9x=6 and x=32.
A general repeating decimal has some digits that do not repeat before the repeating block, like 0.16. Now use two shifts: first move the non-repeating digits in front of the point, then move one more full block, and subtract the two. For x=0.16: 10x=1.6 and 100x=16.6, so 90x=15 and x=61.
Check: 137÷110=1.24545… as required. The book's examples 2.357=4501061 and 2.4537=24756073 follow the same two-shift pattern.
Summary of the method
Decimal type
Steps
Terminating
Write over a power of 10 and simplify.
Pure repeating, n digits repeat
Let x be the number; multiply by 10n; subtract x; solve.
General repeating, m digits do not repeat, n digits repeat
Multiply by 10m; multiply that by 10n; subtract the first from the second; solve.
Two decimal names for one number
Let x=0.9. Then 10x=9.9, so 10x−x=9, 9x=9 and x=1. So 0.999… is exactly 1, not a little less. In the same way every terminating decimal has a second form ending in repeating 9s: 2.47=2.469. This is like writing 1 as 1010: one number, two names.
Cyclic numbers
The magic of 142857
The repeating block of 71 is 142857. Multiply it by 1 to 6:
Every answer uses the same six digits in the same circular order, just starting at a different place. A number with this property is called a cyclic number. The reason is the remainder cycle: 72 starts its division at remainder 2, which is already on the loop 1,3,2,6,4,5, so its digits are the same loop begun at a different point.
Worked example 6
Find 72 without new division, and test whether 131 behaves the same way.
In the loop for 71, remainder 2 is followed by digits 2,8,5,7,1,4. So 72=0.285714, which matches 142857×2.
For 13: 131=0.076923, but 132=0.153846, which uses different digits. Dividing by 13 has twelve possible non-zero remainders, but the loop for 131 visits only six of them, so the fractions split into two separate cycles. A block is cyclic only when its loop passes through every remainder from 1 to q−1. This happens for q=7,17,19,23,29 among small numbers; for example 171=0.0588235294117647 has a 16-digit cyclic block.
Decimals of irrational numbers
No end, no repeat
Because every rational number terminates or repeats, a decimal that does neither must be irrational. Irrational numbers have decimals that never stop and never settle into a repeating block:
A decimal can have a clear pattern and still be irrational. In 1.01001000100001… the runs of zeros keep getting longer, so no fixed block ever repeats; the number is irrational.
The family of numbers, and beyond
How the number system grew
Natural numbersN: 1,2,3,…, all of them integers.
IntegersZ: add zero and the negatives; all of them rational.
Rational numbersQ: all qp with q=0; exactly the terminating and repeating decimals.
Irrational numbers: numbers such as 2, 10 and π that are not fractions; their decimals neither stop nor repeat. No number is both rational and irrational.
Real numbersR: rationals and irrationals together, filling the whole number line. Every length and every measured temperature has a place on it.
Natural numbers sit inside the integers, which sit inside the rationals; rationals and irrationals together make the real numbers.
A number off the line
What is −1? We know 1×1=1 and (−1)×(−1)=1. In fact any real number times itself is positive or zero, so no real number squares to −1, and −1 has no point on the number line. Mathematicians therefore created a new kind of number, written with the letter i, called an imaginary number. Such numbers are used in electrical engineering, quantum mechanics and the technology in mobile phones. You will meet them in later years.
Common mistakes
Deciding the decimal type before reducing the fraction. 63 has a 6 below, but it equals 21=0.5, which terminates.
Multiplying by 10 when two digits repeat. For 0.27 you need 100x.
In general repeating decimals, subtracting x instead of the first shifted equation, which leaves an untidy tail.
Believing 0.9 is slightly less than 1. It equals 1 exactly.
Calling any long decimal irrational. 0.123456789 is long but repeats, so it is rational.
Treating 722 as π. It is a rational approximation only.
Try these
Does 409 terminate? If so, write it as a decimal. Answer: Yes, 40=23×5; 0.225
Write 0.81 as a fraction in lowest terms. Answer:119
Write 0.27 as a fraction in lowest terms. Answer:185
Find the repeating block of 133. Answer:230769
How many decimal places does 22×5317 have? Answer: 3 (it equals 0.034)
Is 0.12345678910111213… (the counting numbers written one after another) rational? Answer: No. Writing 10, 100, 1000, and so on puts longer and longer runs of zeros into it, so no block can repeat for ever; it is irrational
Key terms
Real numbers
All rational and irrational numbers together, written R; they fill the number line.
Terminating decimal
A decimal that stops after a finite number of digits, such as 0.375.
Repeating decimal
A decimal in which a block of digits repeats for ever, written with a bar, such as 0.45.
Pure repeating decimal
A repeating decimal whose block starts right after the decimal point.
General repeating decimal
A repeating decimal with some non-repeating digits before the repeating block.
Cyclic number
A number such as 142857 whose multiples by 1, 2, and so on keep the same digits in the same circular order.
Imaginary number
A number, built from i with i×i=−1, that does not lie on the real number line.
Common questions
How can I tell if a fraction terminates without dividing?
Reduce it to lowest terms and factorise the denominator. If the only primes are 2 and 5, it terminates; otherwise it repeats.
Is 0.999... really equal to 1?
Yes. If x=0.9, then 10x−x=9, so x=1. The two decimals are two names for the same number.
Why is 1/7 called special?
Its repeating block 142857 is a cyclic number: multiplying it by 2, 3, 4, 5 or 6 just rotates its digits.
Can a decimal with a pattern be irrational?
Yes. 1.01001000100001… has a clear rule, but no fixed block repeats, so it is irrational.
Is every real number either rational or irrational?
Yes. Every real number is exactly one of the two.
References
National Council of Educational Research and Training. Ganita Manjari: Textbook of Mathematics, Grade 9 (Part I). NCERT, New Delhi.
Hardy, G. H. and Wright, E. M. An Introduction to the Theory of Numbers. Oxford University Press.
Burton, D. M. Elementary Number Theory. McGraw-Hill Education.