✦ VidyaVerseOpen in the book reader

Home › Books › Primary School Mathematics

Chapter 32: Representation of Rational Numbers

Primary School Mathematics · PART III — Integers & Rational Numbers · by GS Shashidhara

Read in the book reader – search and larger text

PART III — INTEGERS & RATIONAL NUMBERS

Terminating and Recurring Decimals, Conversions, Period Length, Cyclic

Numbers and Continued Fractions

LEARNING OBJECTIVES

1. Convert any rational number to a decimal by long division.

2. Predict, WITHOUT dividing, whether a fraction gives a terminating decimal.

3. Predict how many decimal places a terminating fraction has.

4. Distinguish pure recurring and mixed recurring decimals.

5. Convert pure and mixed recurring decimals back to fractions.

6. Understand why the repeating block can never be longer than q − 1 digits.

7. Explore cyclic numbers such as 142857.

8. Understand why 0.999… = 1.

9. Write rationals as continued fractions.

10. Solve olympiad problems on digits and periods of decimal expansions.

32.1 Rational Numbers as Decimals

Every rational number p/q can be written as a decimal by dividing p by q. The division either stops (terminating) or settles into a repeating pattern (recurring). It can never go on forever WITHOUT repeating — that only happens for irrational numbers.

LONG p/q → p ÷ q, digit by digit
DIVISION

Step 1: Divide; write the whole-number part and the decimal point.

Step 2: Bring down a 0 after each remainder and divide again.

Step 3: If a remainder becomes 0, the decimal TERMINATES.

Step 4: If a remainder repeats, the digits from that point repeat — the decimal RECURS.

LONG DIVISION — WATCH THE REMAINDERS

EXAMPLE: 5/13

50 ÷ 13 = 3 r 11 → 3

110 ÷ 13 = 8 r 6 → 8

60 ÷ 13 = 4 r 8 → 4

80 ÷ 13 = 6 r 2 → 6

20 ÷ 13 = 1 r 7 → 1

70 ÷ 13 = 5 r 5 → 5 remainder 5 = starting value, so the cycle restarts

5/13 = 0.384615 384615 … = 0.(384615) (period 6)

WHY RECURRENCE IS GUARANTEED: dividing by q, the only possible non-zero

remainders

are 1, 2, …, q − 1. After at most q − 1 steps a remainder must repeat,

so the repeating block has length at most q − 1.

Notation used in this book: a repeating block is written in brackets, e.g. 0.(36) = 0.363636…, and 0.1(6) = 0.1666….

32.2 Which Fractions Terminate?

THE 2-AND-5 TEST

TEST: Write p/q in lowest terms. Factorise the denominator q.

If q = 2ᵃ × 5ᵇ only → TERMINATING.

If q has any other prime factor (3, 7, 11, …) → RECURRING.

NUMBER OF DECIMAL PLACES = the larger of a and b.

7/40: 40 = 2³ × 5 → 3 places. 7/40 = 0.175.

13/3125: 3125 = 5⁵ → 5 places. 13/3125 = 0.00416.

3/320: 320 = 2⁶ × 5 → 6 places. 3/320 = 0.009375.

REASON: multiply top and bottom to reach 10ⁿ.

7/40 = 7/(2³ × 5) = (7 × 5²)/(2³ × 5³) = 175/1000 = 0.175.

ALWAYS REDUCE FIRST: 21/42 = 1/2 terminates even though 42 contains 3 and 7.

⚠ Common Mistake: Apply the test only AFTER reducing to lowest terms. 6/15 looks like it has

a 3 in the denominator, but 6/15 = 2/5 = 0.4 terminates.

32.3 Pure and Mixed Recurring Decimals

TypeLooks likeDenominator (lowest Example
terms)
Terminating0.375only 2s and 5s3/8 = 0.375
Pure recurringrepeats from first digitno 2s or 5s4/11 = 0.(36)
Mixed recurring some digits, then repeats 2s or 5s AND other primes1/6 = 0.1(6)

For a mixed recurring decimal, the number of non-repeating digits after the point equals the larger power of 2 or 5 in the denominator. Example: 7/12, 12 = 2² × 3, so 2 non-repeating digits: 7/12 = 0.58(3).

32.4 Converting Recurring Decimals to Fractions

PURE0.(d d …d ) = d d …d / 99…9 (k nines)₁ ₂ ₖ₁ ₂ ₖ

Step 1: Let x = the decimal. Multiply by 10ᵏ, where k = length of the repeating block.

Step 2: Subtract x: the repeating tails cancel exactly.

Step 3: Solve for x and reduce.

PURE RECURRING EXAMPLES

0.(6) = 6/9 = 2/3. 0.(27) = 27/99 = 3/11. 0.(142857) = 142857/999999 = 1/7.

1.(23) = 1 + 23/99 = 122/99.

WHY: x = 0.2727…, 100x = 27.2727…, 100x − x = 27, 99x = 27, x = 27/99.

MIXED0.a(bc) = (abc − a) / 990

Step 1: Numerator: (all digits up to the end of one block) minus (the non-repeating digits).

Step 2: Denominator: one 9 for each repeating digit, followed by one 0 for each non-repeating digit.

Step 3: Reduce to lowest terms.

MIXED RECURRING EXAMPLES

0.1(6) = (16 − 1)/90 = 15/90 = 1/6.

0.2(45) = (245 − 2)/990 = 243/990 = 27/110.

0.58(3) = (583 − 58)/900 = 525/900 = 7/12.

ALGEBRA CHECK for 0.1(6): x = 0.1666…; 10x = 1.666…; 100x = 16.666…;

100x − 10x = 15; 90x = 15; x = 1/6. ✓

32.5 Period Lengths and the Amazing 142857

FractionDecimalPeriod
1/30.(3)1
1/70.(142857)6
1/110.(09)2
1/130.(076923)6
1/170.(0588235294117647)16
1/190.(052631578947368421)18
1/270.(037)3
1/370.(027)3
1/410.(02439)5
CYCLIC NUMBERS

1/7 = 0.142857… 2/7 = 0.285714… 3/7 = 0.428571…

4/7 = 0.571428… 5/7 = 0.714285… 6/7 = 0.857142…

Every multiple uses the SAME six digits in the SAME cyclic order — 142857 is a CYCLIC NUMBER.

142857 × 7 = 999999.

Split it in halves: 142 + 857 = 999 (Midy’s theorem). Same for 1/13: 076 + 923 = 999.

For a prime p (other than 2, 5), the period of 1/p always divides p − 1.

1/7: period 6 divides 6. 1/13: period 6 divides 12. 1/41: period 5 divides 40.

32.6 Does 0.999… Really Equal 1?

0.999… = 1

PROOF 1 (algebra): x = 0.999…, 10x = 9.999…, 9x = 9, x = 1.

PROOF 2 (fractions): 1/3 = 0.333…; multiply by 3: 3/3 = 0.999… so 0.999… = 1.

PROOF 3 (gap): if 0.999… < 1 there would be a number strictly between them.

But 1 − 0.999… is smaller than 0.1, 0.01, 0.001, … — smaller than every positive number,

so the gap is 0.

Consequence: every terminating decimal has a second form: 0.375 = 0.374999…

32.7 Continued Fractions

A continued fraction writes a rational number using whole parts and nested reciprocals. The steps are exactly the Euclidean algorithm from Chapter 28.

CONTINUED FRACTIONS

43/30 = 1 + 13/30. 30/13 = 2 + 4/13. 13/4 = 3 + 1/4.

So 43/30 = 1 + 1/(2 + 1/(3 + 1/4)) = [1; 2, 3, 4].

355/113: 355 = 3 × 113 + 16; 113 = 7 × 16 + 1; 16 = 16 × 1.

355/113 = [3; 7, 16]. Its "convergent" [3; 7] = 22/7.

Both 22/7 and 355/113 are famous approximations of π.

Every rational number has a FINITE continued fraction; irrationals have infinite ones.

WORKED EXAMPLES

Section A: Easy Problems

Problem 1: Without dividing, decide which terminate, and how many decimal places: (a)

13/3125 (b) 17/8 (c) 64/455 (d) 15/1600 (e) 29/343.

✔ Solution

(a) 3125 = 5⁵: terminates, 5 places (0.00416).

(b) 8 = 2³: terminates, 3 places (2.125).

(c) 455 = 5 × 7 × 13: recurring.

(d) 15/1600 = 3/320, 320 = 2⁶ × 5: terminates, 6 places (0.009375).

(e) 343 = 7³: recurring.

Problem 2: Find the decimal form of 5/13 and state its period.

✔ Solution

Long division (see 32.1) gives 0.384615 384615… Period = 6.

Check: 13 × 0.384615 = 4.999995 ≈ 5. ✓

Problem 3: Convert to fractions: (a) 0.(6) (b) 0.(27) (c) 1.(23) (d) 0.(142857).

✔ Solution

(a) 6/9 = 2/3 (b) 27/99 = 3/11 (c) 1 + 23/99 = 122/99 (d) 142857/999999 = 1/7

Problem 4: Convert to fractions: (a) 0.3(5) (b) 2.1(36).

✔ Solution

(a) (35 − 3)/90 = 32/90 = 16/45.

(b) 0.1(36) = (136 − 1)/990 = 135/990 = 3/22, so 2.1(36) = 2 + 3/22 = 47/22. Check: 3/22 = 0.13636… ✓

Problem 5: Write 7/(2³ × 5⁵) as a decimal without long division.

✔ Solution

Multiply top and bottom by 2² to make 10⁵: (7 × 4)/(2⁵ × 5⁵) = 28/100000 = 0.00028. (5 decimal places, as predicted by max(3, 5) = 5.)

Problem 6: Classify and predict the form of 7/12, 9/14 and 11/40.

✔ Solution

7/12: 12 = 2² × 3 → mixed, 2 non-repeating digits: 0.58(3).

9/14: 14 = 2 × 7 → mixed, 1 non-repeating digit: 0.6(428571).

11/40: 40 = 2³ × 5 → terminating, 3 places: 0.275.

Section B: Medium Problems

Problem 7: Find (a) 0.(3) + 0.(6) (b) 0.(12) + 0.(21) (c) 0.(9) − 0.(4).

✔ Solution

(a) 1/3 + 2/3 = 1. (b) 12/99 + 21/99 = 33/99 = 1/3. (c) 1 − 4/9 = 5/9.

Problem 8: Find the 100th digit after the decimal point of 1/7.

✔ Solution

1/7 = 0.(142857), period 6. 100 = 6 × 16 + 4, so the 100th digit is the 4th in the block. Block 1 4 2 8 5 7 → 4th digit is 8.

Problem 9: Find the 2026th digit after the decimal point of 3/11.

✔ Solution

3/11 = 0.(27). Odd positions are 2, even positions are 7. 2026 is even, so the digit is 7.

Problem 10: Show that 0.(ab) = (10a + b)/99 for digits a, b.

✔ Solution

x = 0.abab…, 100x = ab.abab…, 99x = 10a + b, x = (10a + b)/99. QED

Problem 11: Express 0.4(9) as a fraction and explain the result.

✔ Solution

(49 − 4)/90 = 45/90 = 1/2. So 0.4999… = 0.5 — the same idea as 0.999… = 1.

Problem 12: Without dividing, find the period of 1/27 and of 1/37.

✔ Solution

27 × 37 = 999, so 1/27 = 37/999 = 0.(037) and 1/37 = 27/999 = 0.(027). Both have period 3.

Section C: Challenge Problems

Challenge Problem 13: Verify Midy’s theorem for 1/7, 1/13 and 1/17.

✔ Solution

1/7: 142 + 857 = 999. 1/13: 076 + 923 = 999.

1/17: 05882352 + 94117647 = 99999999. (each period is even, split into halves).✓

Challenge Problem 14: Explain why a fraction in lowest terms with denominator coprime to 10 is PURE recurring.

✔ Solution

Let k be the period. The remainders cycle back to the very first remainder p,

because each remainder determines the previous one uniquely when gcd(q, 10) = 1

(10 has an inverse modulo q). So the repetition starts immediately after the point.

Challenge Problem 15: Find the continued fractions of 43/30 and 355/113, and the value of [2; 1, 2].

✔ Solution

43/30 = [1; 2, 3, 4]. 355/113 = [3; 7, 16].

[2; 1, 2] = 2 + 1/(1 + 1/2) = 2 + 2/3 = 8/3.

Challenge Problem 16: Show that the period of 1/p divides p − 1 for p = 7, 13, 41, and explain using Fermat.

✔ Solution

Periods 6, 6, 5 divide 6, 12, 40 respectively.

Fermat’s little theorem gives 10^(p−1) ≡ 1 (mod p), so 99…9 (p − 1 nines) is divisible by p.

The period is the smallest k with 10ᵏ ≡ 1 (mod p), and such k always divides p − 1.

OLYMPIAD CORNER

Olympiad Problem O-1: How many n from 1 to 50 make 1/n a terminating decimal?

✔ Solution

n must be of the form 2ᵃ5ᵇ: 1, 2, 4, 5, 8, 10, 16, 20, 25, 32, 40, 50.

Answer: 12 values.

Olympiad Problem O-2: Find all n for which 1/n = 0.(ab) has a repeating block of exactly two digits written as ab.

✔ Solution

Need ab/99 = 1/n, so the two-digit block ab divides 99: ab {01, 03, 09, 11, 33}.∈

n = 99, 33, 11, 9, 3: 1/99 = 0.(01), 1/33 = 0.(03), 1/11 = 0.(09), 1/9 = 0.(11), 1/3 = 0.(33).

(ab = 99 would give 0.(99) = 1, i.e. n = 1, usually excluded.)

Olympiad Problem O-3: Find the smallest n > 1 for which 1/n has period exactly 6.

✔ Solution

Need the order of 10 modulo n to be 6. Check n = 3 (period 1), 7 (period 6).

Answer: n = 7. (13 and 21 also have period 6, but are larger.)

BRAIN TEASERS

Brain Teaser 1

Multiply 142857 by 2, 3, 4, 5 and 6. What do you notice? What about × 7?

Answer: The products are rotations of 142857 (285714, 428571, 571428, 714285, 857142). × 7 gives 999999.

Brain Teaser 2

Is 0.1010010001… (one more 0 each time) rational?

Answer: No. It never ends and never repeats, so it is irrational.

Brain Teaser 3

Which is bigger: 0.(3) or 0.33?

Answer: 0.(3) = 1/3 is bigger by 1/300.

Brain Teaser 4

A shop prices an item at Rs.99.99… (recurring 9s). How much do you pay?

Answer: Exactly Rs.100, since 99.(9) = 100.

DID YOU KNOW?

Decimal fractions in India: place-value decimals were used in Indian astronomy, and the Kerala school (Madhava, ~1400) computed π to 11 decimal places using infinite series.

Simon Stevin popularised decimals in Europe in "De Thiende" (1585).

Mathematician Carl Friedrich Gauss studied period lengths of 1/p as a teenager and tabulated them for primes up to 1000.

PRACTICE EXERCISE 32.A — Easy

1. Without dividing, decide which terminate: 3/16, 11/30, 21/56, 7/125, 5/18.

2. Convert to decimals: 7/8, 4/9, 5/11, 3/14.

3. Convert to fractions: 0.(5), 0.(45), 0.(123), 2.(7).

4. Convert to fractions: 0.2(3), 0.12(5), 1.0(6).

5. How many decimal places does 9/(2⁴ × 5²) have? Write the decimal.

6. Classify 0.75, 0.(75), 0.7(5) as terminating, pure or mixed recurring.

PRACTICE EXERCISE 32.B — Medium

1. Find the 50th decimal digit of 2/7.

2. Find 0.(7) × 0.(3) as a fraction and as a decimal.

3. Show 0.(abc) = abc/999.

4. Which is larger: 0.(45) or 0.4(5)? By how much?

5. Find the period of 1/21 and of 1/63.

6. Find the continued fraction of 47/17.

PRACTICE EXERCISE 32.C — Challenge

1. Prove that 1/n terminates if and only if n = 2ᵃ5ᵇ.

2. Find the sum 0.(1) + 0.(01) + 0.(001) as a fraction.

3. Find all fractions p/7 (1 ≤ p ≤ 6) whose decimal begins 0.5.

4. Find a fraction between 0.(3) and 0.(34).

ANSWER KEY — CHAPTER 32

Exercise 32.A

1. 3/16 , 7/125 , 21/56 = 3/8 ; 11/30 , 5/18 . 2. 0.875, 0.(4), 0.(45), 0.2(142857). 3. 5/9, 5/11, ✓✓✓✗✗

41/333, 25/9. 4. 7/30, 113/900, 16/15. 5. 4 places: 9/400 = 0.0225. 6. terminating, pure, mixed.

Exercise 32.B

1. 2/7 = 0.(285714); 50 = 6 × 8 + 2 → 8. 2. 7/9 × 1/3 = 7/27 = 0.(259). 3. As in Problem 10 with 1000x. 4. 0.(45) = 45/99 = 5/11; 0.4(5) = 41/90; difference 5/11 − 41/90 = (450 − 451)/990 = −1/990, so 0.4(5) is larger by 1/990. 5. 1/21 = 0.(047619), period 6; 1/63 = 0.(015873), period 6. 6. 47/17 = [2; 1, 3, 4].

Exercise 32.C (notes)

1. See 32.2 ( by scaling to 10ⁿ; because a terminating decimal equals N/10ⁿ, whose reduced ⇐⇒

denominator divides 2ⁿ5ⁿ). 2. LCM(9, 99, 999) = 10989: 1221/10989 + 111/10989 + 11/10989 = 1343/10989 (= 0.12221…). 3. Only 4/7 = 0.571… 4. For example 0.335 = 67/200 lies between 0.333… and 0.3434….

CHAPTER 32 — NEW TERMS FOR GLOSSARY

TermDefinition
Terminating DecimalA decimal that ends, e.g. 0.375. Denominator (lowest terms) has only 2s and

5s.

Recurring DecimalA decimal whose digits repeat forever, e.g. 0.(36).
Pure RecurringRepetition starts right after the decimal point.
Mixed RecurringSome non-repeating digits come before the repeating block.
PeriodLength of the repeating block. For 1/7 the period is 6.
Cyclic NumberA number like 142857 whose multiples are rotations of itself.
Midy’s TheoremFor suitable primes, the two halves of the period of 1/p add to 99…9.
Continued FractionA number written as a whole part plus nested reciprocals, e.g. [1; 2, 3, 4].