Decimal Expansion of Rational Numbers
When you divide one integer by another, you get a decimal number. Sometimes the decimal stops (like 1/4 = 0.25), and sometimes it goes on forever (like 1/3 = 0.333...). In Class 9, you will study these decimal expansions in detail and learn to classify them systematically. Every rational number — that is, every number that can be written as p/q with integers p and q (q not zero) — produces a decimal that either terminates (comes to an end) or repeats (has a block of digits that cycles forever). This is not just a coincidence; it is a mathematical certainty, and understanding why it happens is a key part of the Number Systems chapter. The study of decimal expansions also helps you determine whether a given decimal represents a rational or irrational number. If a decimal terminates or repeats, the number is rational. If it does neither — going on forever without any repeating pattern — the number is irrational. This connection between fractions and decimals is one of the most powerful ideas in elementary number theory and forms a bridge between arithmetic and algebra.
What is Decimal Expansion of Rational Numbers?
The decimal expansion of a rational number p/q is the decimal representation obtained by dividing p by q using long division.
There are exactly two types of decimal expansions for rational numbers:
1. Terminating Decimal Expansion:
The decimal has a finite number of digits after the decimal point. The division process eventually gives a remainder of 0.
Examples: 1/4 = 0.25, 7/8 = 0.875, 3/5 = 0.6, 13/20 = 0.65.
2. Non-Terminating Repeating (Recurring) Decimal Expansion:
The decimal goes on forever, but a block of one or more digits repeats indefinitely. The division process never gives a remainder of 0, but the remainders start repeating, causing the quotient digits to repeat.
Examples: 1/3 = 0.333... (3 repeats), 1/7 = 0.142857142857... (142857 repeats), 2/11 = 0.181818... (18 repeats), 1/6 = 0.1666... (6 repeats after the initial 1).
The repeating block is sometimes shown with a bar over it: 1/3 = 0.3 with a bar over 3, or 1/7 = 0.142857 with a bar over 142857.
Theorem (NCERT): Every rational number has either a terminating or a non-terminating repeating decimal expansion. Conversely, every terminating or repeating decimal represents a rational number.
Condition for terminating decimal:
A rational number p/q (in lowest terms, i.e., HCF(p, q) = 1) has a terminating decimal expansion if and only if the prime factorisation of q contains no prime factors other than 2 and 5. In other words, q must be of the form 2^m x 5^n, where m and n are non-negative integers.
If q has any prime factor other than 2 or 5, the decimal expansion will be non-terminating repeating.
Decimal Expansion of Rational Numbers Formula
1. Condition for a terminating decimal:
A rational number p/q (in simplest form) has a terminating decimal if and only if q = 2^m x 5^n for some non-negative integers m and n.
2. Converting terminating decimal to fraction:
If the decimal has d digits after the decimal point, multiply by 10^d to clear the decimal:
0.25 = 25/100 = 1/4
0.375 = 375/1000 = 3/8
3.14 = 314/100 = 157/50
3. Converting repeating decimal to fraction:
For a purely repeating decimal (all digits repeat):
If x = 0.abcabc... (n digits repeat), then x = abc / (10^n - 1).
Example: 0.142857142857... = 142857/999999 = 1/7.
For a mixed repeating decimal (some digits do not repeat):
If x = 0.pqrsrs... where pq does not repeat and rs repeats:
100x = pq.rsrs...
10000x = pqrs.rsrs...
Subtract: 9900x = pqrs - pq
x = (pqrs - pq)/9900
4. Maximum length of repeating block:
For p/q in lowest terms, the maximum number of digits in the repeating block is (q - 1). For example, 1/7 has a repeating block of 6 digits (since 7 - 1 = 6).
5. Why the decimal must terminate or repeat:
When dividing by q, the possible remainders are 0, 1, 2, ..., (q - 1) — a total of q possibilities. If the remainder becomes 0, the decimal terminates. If it doesn't, then within at most q steps, a remainder must repeat (by the Pigeonhole Principle), and from that point, the quotient digits repeat.
Derivation and Proof
Why does a rational number always give a terminating or repeating decimal? (Proof using the Pigeonhole Principle)
This is an elegant argument that every Class 9 student should understand.
Step 1: Consider the rational number p/q where q > 0. Perform long division of p by q.
Step 2: At each step of the division, you get a remainder. The remainder must be one of the values: 0, 1, 2, 3, ..., (q - 1). So there are exactly q possible remainders.
Step 3 (Case 1 — Terminating): If at any step the remainder is 0, the division is complete and the decimal terminates. For example, 3/8: the remainders are 6, 4, 0 — and the division stops. Result: 0.375.
Step 4 (Case 2 — Repeating): If the remainder never becomes 0, then we are cycling through remainders from the set {1, 2, ..., q - 1}, which has (q - 1) elements. By the Pigeonhole Principle, after at most (q - 1) steps, some remainder must appear for the second time.
Step 5: Once a remainder repeats, the entire sequence of quotient digits and remainders from that point onward will be identical to the sequence that followed the first occurrence of that remainder. This creates a repeating cycle in the decimal.
Step 6: Therefore, the decimal expansion of p/q either terminates (remainder becomes 0) or repeats (a remainder recurs). There is no third possibility.
Derivation of the terminating condition:
Why does q = 2^m x 5^n guarantee termination?
Consider p/q where q = 2^m x 5^n. We can multiply numerator and denominator to make the denominator a power of 10:
If m > n: p/q = p x 5^(m-n) / (2^m x 5^m) = p x 5^(m-n) / 10^m.
If n > m: p/q = p x 2^(n-m) / (2^n x 5^n) = p x 2^(n-m) / 10^n.
If m = n: p/q = p / 10^m.
In every case, the denominator becomes a power of 10, so the decimal terminates with at most max(m, n) decimal places.
Conversely, if q has a prime factor other than 2 or 5, we cannot convert the denominator to a power of 10, so the decimal cannot terminate.
Types and Properties
Decimal expansions of rational numbers fall into exactly two categories:
1. Terminating Decimals:
These are decimals that have a finite number of digits after the decimal point.
Examples and their fraction forms:
1/2 = 0.5 (denominator 2 = 2^1)
3/4 = 0.75 (denominator 4 = 2^2)
7/8 = 0.875 (denominator 8 = 2^3)
3/5 = 0.6 (denominator 5 = 5^1)
9/25 = 0.36 (denominator 25 = 5^2)
7/20 = 0.35 (denominator 20 = 2^2 x 5)
In each case, the denominator (when the fraction is in lowest terms) has only 2 and/or 5 as prime factors.
2. Non-Terminating Repeating Decimals:
These are decimals that go on forever with a repeating block.
(a) Pure repeating decimals: The repeating block starts immediately after the decimal point.
1/3 = 0.333... (block: 3, length 1)
1/7 = 0.142857142857... (block: 142857, length 6)
1/9 = 0.111... (block: 1, length 1)
5/11 = 0.454545... (block: 45, length 2)
(b) Mixed repeating decimals: There are some non-repeating digits before the repeating block begins.
1/6 = 0.1666... (non-repeating: 1, repeating: 6)
7/12 = 0.58333... (non-repeating: 58, repeating: 3)
1/30 = 0.0333... (non-repeating: 0, repeating: 3)
Mixed repeating decimals occur when the denominator (in lowest terms) has factors of 2 or 5 in addition to other prime factors.
Key distinction from irrational numbers:
Irrational numbers have non-terminating, non-repeating decimals — they go on forever with NO repeating block. Examples: sqrt(2) = 1.41421356..., pi = 3.14159265..., sqrt(3) = 1.73205080... The digits appear random with no pattern that ever repeats.
Solved Examples
Example 1: Example 1: Identifying terminating and repeating decimals
Problem: Without performing division, determine whether each fraction has a terminating or non-terminating repeating decimal expansion:
(a) 13/40 (b) 7/12 (c) 11/125 (d) 5/6
Solution:
First, ensure each fraction is in its simplest form, then factorise the denominator.
(a) 13/40: HCF(13, 40) = 1 (already simplest form). 40 = 2^3 x 5. Only factors 2 and 5 appear. Terminating.
Verification: 13/40 = 0.325.
(b) 7/12: HCF(7, 12) = 1 (simplest form). 12 = 2^2 x 3. The factor 3 is present (not just 2 and 5). Non-terminating repeating.
Verification: 7/12 = 0.58333...
(c) 11/125: HCF(11, 125) = 1. 125 = 5^3. Only factor 5 appears. Terminating.
Verification: 11/125 = 0.088.
(d) 5/6: HCF(5, 6) = 1. 6 = 2 x 3. The factor 3 is present. Non-terminating repeating.
Verification: 5/6 = 0.8333...
Example 2: Example 2: Converting a terminating decimal to a fraction
Problem: Express the following decimals as fractions in simplest form:
(a) 0.375 (b) 2.15 (c) 0.0024
Solution:
(a) 0.375 = 375/1000. Simplify by dividing both by HCF(375, 1000) = 125.
375/125 = 3, 1000/125 = 8. So 0.375 = 3/8.
(b) 2.15 = 215/100. HCF(215, 100) = 5.
215/5 = 43, 100/5 = 20. So 2.15 = 43/20.
(c) 0.0024 = 24/10000. HCF(24, 10000) = 8.
24/8 = 3, 10000/8 = 1250. So 0.0024 = 3/1250.
Example 3: Example 3: Converting a repeating decimal to a fraction
Problem: Express 0.777... (7 repeating) as a fraction.
Solution:
Let x = 0.777...
Multiply both sides by 10: 10x = 7.777...
Subtract the original equation: 10x - x = 7.777... - 0.777...
9x = 7
x = 7/9
Answer: 0.777... = 7/9.
Verification: Divide 7 by 9. 9 goes into 7 zero times, remainder 7. Then 9 goes into 70 seven times (63), remainder 7. The remainder 7 keeps repeating, giving 0.777...
Example 4: Example 4: Converting a mixed repeating decimal to a fraction
Problem: Express 0.23555... (where 5 repeats) as a fraction.
Solution:
Let x = 0.23555...
The non-repeating part is '23' (2 digits) and the repeating part is '5' (1 digit).
Multiply by 100 to move past the non-repeating part: 100x = 23.555...
Multiply by 1000 to move past one more cycle: 1000x = 235.555...
Subtract: 1000x - 100x = 235.555... - 23.555...
900x = 212
x = 212/900 = 53/225
Answer: 0.23555... = 53/225.
Verification: 53 divided by 225: 53/225 = 0.23555... Confirmed.
Example 5: Example 5: Finding decimal expansion by long division
Problem: Find the decimal expansion of 1/7 and identify the repeating block.
Solution:
Perform long division of 1 by 7:
1.000000 divided by 7:
7 into 10 = 1, remainder 3
7 into 30 = 4, remainder 2
7 into 20 = 2, remainder 6
7 into 60 = 8, remainder 4
7 into 40 = 5, remainder 5
7 into 50 = 7, remainder 1
Now the remainder is 1 again — the same as the starting remainder. The cycle will repeat.
1/7 = 0.142857142857...
Repeating block: 142857 (length 6 = 7 - 1 digits).
This is the maximum possible length for a fraction with denominator 7, consistent with the theorem that the repeating block length is at most (q - 1).
Example 6: Example 6: Determining the number of decimal places in a terminating decimal
Problem: Without actual division, find how many decimal places the following will have:
(a) 7/16 (b) 3/125 (c) 23/200
Solution:
(a) 7/16: 16 = 2^4. To make the denominator a power of 10, multiply by 5^4 = 625.
7/16 = (7 x 625)/(16 x 625) = 4375/10000 = 0.4375. 4 decimal places.
(b) 3/125: 125 = 5^3. Multiply by 2^3 = 8.
3/125 = (3 x 8)/(125 x 8) = 24/1000 = 0.024. 3 decimal places.
(c) 23/200: 200 = 2^3 x 5^2. Multiply by 5^1 = 5 to balance.
23/200 = (23 x 5)/(200 x 5) = 115/1000 = 0.115. 3 decimal places.
Rule: The number of decimal places equals max(m, n) where the denominator is 2^m x 5^n.
Example 7: Example 7: Applying the Pigeonhole Principle
Problem: Explain why the decimal expansion of 1/13 must start repeating within the first 12 digits.
Solution:
When dividing by 13, the possible remainders are 0, 1, 2, 3, ..., 12 (a total of 13 possible remainders).
If the remainder is ever 0, the decimal terminates. But 13 = 13^1, which is not of the form 2^m x 5^n, so the decimal does NOT terminate.
Since the remainder is never 0, each remainder belongs to {1, 2, 3, ..., 12} — only 12 possible values.
By the Pigeonhole Principle, within at most 12 division steps, some remainder must repeat, and the decimal starts cycling.
Actual expansion: 1/13 = 0.076923076923... The repeating block is 076923, which has 6 digits (less than the maximum of 12).
Example 8: Example 8: Determining if a fraction is terminating — tricky cases
Problem: Determine whether 6/15 has a terminating decimal. (Be careful!)
Solution:
Step 1: Simplify the fraction first. HCF(6, 15) = 3.
6/15 = 2/5.
Step 2: Now check the denominator: 5 = 5^1. Only 5 as a prime factor.
Answer: Terminating. 2/5 = 0.4.
Common mistake: Students sometimes check 15 = 3 x 5 and conclude 'non-terminating' because of the factor 3. But you must first simplify the fraction! The factor 3 in the denominator cancels with the factor 3 in the numerator. Always reduce to lowest terms before applying the test.
Example 9: Example 9: Converting a multi-digit repeating decimal to a fraction
Problem: Express 0.363636... (36 repeating) as a fraction.
Solution:
Let x = 0.363636...
The repeating block '36' has 2 digits, so multiply by 10^2 = 100:
100x = 36.363636...
Subtract: 100x - x = 36.3636... - 0.3636...
99x = 36
x = 36/99
Simplify: HCF(36, 99) = 9. So x = 4/11.
Answer: 0.363636... = 4/11.
Verification: 4 divided by 11 = 0.363636... Confirmed.
Example 10: Example 10: Creating a decimal that is NOT rational
Problem: Construct a decimal between 0 and 1 that is NOT rational. Explain why.
Solution:
Consider the decimal: 0.10100100010000100000...
The pattern is: 1, then one 0, then 1, then two 0s, then 1, then three 0s, then 1, then four 0s, and so on. The number of 0s between consecutive 1s keeps increasing.
This decimal is non-terminating (it goes on forever) and non-repeating (because the gaps between 1s keep growing, no fixed block of digits ever repeats exactly).
Since it is non-terminating and non-repeating, it does NOT represent a rational number. It is irrational.
This technique is useful for constructing irrational numbers to any specification. You just need to ensure the decimal never settles into a fixed repeating pattern.
Real-World Applications
Understanding decimal expansions of rational numbers has practical applications across many fields:
Currency and Finance: Money is naturally expressed in terminating decimals. Rs 3.50, Rs 129.75, etc. When interest rates produce repeating decimals (like 1/3 percent), they are rounded to a suitable number of decimal places. Understanding why some fractions terminate helps in quick mental calculations.
Measurement and Engineering: Measurements often involve fractions that need decimal conversion. Knowing whether 7/16 of an inch will terminate (it does: 0.4375) helps machinists set precise measurements without rounding errors.
Computer Science: Computers store numbers in binary (base 2). Interestingly, some decimals that terminate in base 10 (like 0.1) become non-terminating in binary, leading to floating-point errors. Understanding the relationship between bases and termination is critical for programmers.
Fractions in Recipes and Daily Life: Converting recipe measurements (like 1/3 cup, 2/7 of a litre) to decimal helps when using digital measuring tools. Knowing that 1/3 = 0.333... helps you understand why 3 x 0.333 gives 0.999 (approximately 1, not exactly 1 in finite decimal form).
Cryptography: Properties of decimal expansions of 1/p (where p is prime) are used in certain cryptographic algorithms. The length of the repeating period relates to the concept of multiplicative order in number theory.
Key Points to Remember
- Every rational number p/q has either a terminating or a non-terminating repeating decimal expansion.
- A fraction p/q (in lowest terms) terminates if and only if the denominator q = 2^m x 5^n for non-negative integers m and n.
- If q has any prime factor besides 2 and 5, the decimal is non-terminating repeating.
- The repeating block in a recurring decimal has length at most (q - 1) digits.
- Always simplify the fraction to lowest terms BEFORE checking the terminating condition.
- A terminating decimal with d digits after the point equals some integer divided by 10^d.
- Every repeating decimal can be converted to a fraction using algebraic methods (multiply by 10^n and subtract).
- Irrational numbers have non-terminating, non-repeating decimal expansions — the third type that rational numbers never produce.
- The Pigeonhole Principle guarantees that long division of any rational number must eventually repeat.
- The number of decimal places in a terminating decimal equals max(m, n) where denominator = 2^m x 5^n.
Practice Problems
- Without performing division, determine whether these fractions have terminating or non-terminating repeating decimals: (a) 17/80, (b) 9/14, (c) 21/35, (d) 11/250, (e) 3/7.
- Express 0.4444... (4 repeating) as a fraction in its simplest form.
- Express 2.1363636... (where 36 repeats) as a fraction.
- Find the decimal expansion of 3/11 by long division. Identify the repeating block and its length.
- A fraction p/q (in simplest form) has a denominator q = 2^5 x 5^3. How many decimal places will the terminating decimal have?
- Show that 0.9999... = 1 using the method of converting repeating decimals to fractions.
- Find two fractions between 1/3 and 1/2 — one that terminates and one that repeats.
- Is the decimal 0.123456789101112131415... (formed by writing consecutive natural numbers) rational or irrational? Explain.
Frequently Asked Questions
Q1. What is a terminating decimal?
A terminating decimal is a decimal number that has a finite number of digits after the decimal point. It 'terminates' or ends. For example, 0.5, 0.75, 2.125, and 3.6 are all terminating decimals. Every terminating decimal can be written as a fraction whose denominator (in simplest form) has only 2 and/or 5 as prime factors.
Q2. What is a non-terminating repeating decimal?
A non-terminating repeating decimal is a decimal that goes on forever but has a block of digits that repeats in a cycle. For example, 0.333... (3 repeats), 0.142857142857... (142857 repeats), and 0.1666... (6 repeats) are all non-terminating repeating decimals. Every such decimal represents a rational number.
Q3. How do you know if a fraction will give a terminating decimal?
First, reduce the fraction to its simplest form. Then look at the denominator's prime factorisation. If the denominator has ONLY 2 and/or 5 as prime factors (like 2, 4, 5, 8, 10, 16, 20, 25, 40, 50, etc.), the decimal terminates. If there is any other prime factor (like 3, 7, 11, 13), the decimal will be non-terminating repeating.
Q4. How do you convert a repeating decimal to a fraction?
Use this algebraic method: (1) Let x equal the repeating decimal. (2) Multiply x by 10^n where n is the number of digits in the repeating block. (3) Subtract the original x from this. The repeating parts cancel. (4) Solve for x. For example, for 0.272727...: let x = 0.2727..., then 100x = 27.2727..., subtract: 99x = 27, so x = 27/99 = 3/11.
Q5. What is the maximum length of a repeating block for p/q?
For a fraction p/q in simplest form, the maximum length of the repeating block is (q - 1) digits. This is because when dividing by q, there are only (q - 1) possible non-zero remainders (1, 2, ..., q-1), so by the Pigeonhole Principle, a remainder must repeat within (q - 1) steps. For example, 1/7 has a repeating block of 6 digits (the maximum, since 7 - 1 = 6).
Q6. Is 0.101001000100001... rational or irrational?
This is irrational. Although it follows a pattern (each group of 0s gets longer), there is no fixed block of digits that repeats exactly. The decimal is non-terminating (it never ends) and non-repeating (no cyclic pattern). For a decimal to be rational, the EXACT same sequence of digits must repeat over and over, which does not happen here.
Q7. Why must we simplify the fraction before checking for termination?
Because common factors in the numerator and denominator can make a fraction appear non-terminating when it actually terminates. For example, 6/15 looks like it has denominator 15 = 3 x 5 (contains 3, so repeating). But simplifying gives 2/5, with denominator 5 = 5^1 (only 5, so terminating). The common factor 3 cancels out. Always simplify first.
Q8. What is the difference between a repeating and a non-repeating decimal?
A repeating decimal has a fixed block of digits that cycles forever, like 0.123123123... where '123' repeats. A non-repeating decimal has no such cycle — the digits go on forever in a seemingly random sequence with no block ever repeating exactly. Repeating decimals are rational (they can be converted to fractions). Non-repeating non-terminating decimals are irrational.
Q9. Can a fraction with denominator 6 ever give a terminating decimal?
It depends on whether the fraction simplifies. 6 = 2 x 3, which has the prime factor 3, so p/6 in simplest form gives a non-terminating repeating decimal. However, if p is a multiple of 3, the fraction simplifies: 3/6 = 1/2 = 0.5 (terminating). So the fraction itself may terminate after simplification, even though 6 has a factor of 3.
Q10. Why is this topic important for understanding irrational numbers?
This topic establishes the complete classification: rational numbers give terminating or repeating decimals, and that is ALL they give. So any decimal that is non-terminating AND non-repeating MUST be irrational. This is the test used to identify irrational numbers. Without understanding decimal expansions of rationals, you cannot distinguish rational from irrational numbers by looking at their decimal forms.










