Revisiting rational and irrational number properties

Take any fraction in lowest terms and, without doing a single division, you can already say whether its decimal expansion stops dead or runs forever in a repeating loop. The secret is not in the numerator at all — it is hiding entirely in the prime factors of the denominator. This closing topic of the Class 10 chapter Real Numbers turns that observation into a precise, provable rule: a rational number pq\dfrac{p}{q} in lowest terms terminates exactly when qq's only prime factors are 22 and 55, and repeats forever otherwise. The same idea then completes the picture of the entire real number line, sorting every real number into one of three decimal types and showing exactly where irrational numbers such as 2\sqrt2 and π\pi fit in.

The core insight

A rational number p/qp/q in lowest terms has a terminating decimal expansion if and only if qq's prime factorisation contains no primes other than 22 and 55; otherwise its decimal expansion is non-terminating repeating.

The core idea

Every real number falls into exactly one of three decimal categories, and rational numbers split cleanly between the first two:

  • Terminating — the digits stop after finitely many places, like 0.3750.375 or 0.004160.00416.
  • Non-terminating repeating (recurring) — the digits continue forever but settle into a block that repeats exactly, like 0.38‾=0.38888…0.3\overline{8} = 0.38888\ldots
  • Non-terminating non-repeating — the digits continue forever with no repeating block at all. These are precisely the irrational numbers, such as 2=1.41421356…\sqrt2 = 1.41421356\ldots and π=3.14159265…\pi = 3.14159265\ldots

For a rational number, which of the first two categories it falls into is decided entirely by the denominator once the fraction is written in lowest terms — that is, once pp and qq share no common factor other than 11.

The denominator test. Let x=pqx = \dfrac{p}{q} be in lowest terms, with q≠0q \ne 0. Then xx terminates exactly when

q=2m×5nq = 2^m \times 5^n

where: mm and nn are non-negative integers (either can be zero, and q=1q = 1 is allowed as 20502^05^0). If qq carries any prime factor other than 22 or 55 — such as 33, 77, 1111, or 1313 — then xx is non-terminating repeating instead. The size of the exponents mm and nn never matters for this classification; only whether 22 and 55 are the only primes present in qq decides the outcome. The reason 22 and 55 are singled out traces back to how decimals are built. Every terminating decimal can be written as a fraction over a power of 1010 — for instance 0.375=37510000.375 = \dfrac{375}{1000} — and because 10=2×510 = 2 \times 5, every power of 1010 factorises as 10k=2k×5k10^k = 2^k \times 5^k. So a denominator that already consists only of 22s and 55s can always be "completed" into a power of 1010 by multiplying by the missing 22s or 55s, which is exactly what produces a finite string of decimal digits. Any other prime sitting in the denominator can never be cleared this way, no matter how many 22s and 55s you throw at it — the division never lands on an exact power of 1010, so it must go on forever, and it is forced to repeat because only finitely many remainders are possible at each step of long division.

Figure
A branching diagram sorting a rational number into terminating or non-terminating repeating based on whether the lowest-terms denominator has only 2 and 5 as prime factors
Classifying p over q in lowest terms p / q, lowest terms factorise q — are 2 and 5 the only primes present yes — q = 2^m 5^n terminating decimal no — other prime present non-terminating repeating Only the set of primes in q matters, never the size of the exponents m and n

Why it works

Derivation AWhy a denominator of only 2s and 5s gives a terminating decimal

The goal is to show, using nothing beyond exponent rules, that whenever a fraction in lowest terms has denominator q=2m5nq = 2^m5^n, it can always be rewritten with a denominator that is a pure power of 1010, and that this rewriting is exactly what forces the decimal expansion to stop after a finite number of digits.

Step 1. Start from x=p2m5nx = \dfrac{p}{2^m5^n} with p,m,np, m, n as before, and suppose without loss of generality that m≥nm \ge n (the argument is symmetric if n≥mn \ge m instead). Let k=mk = m, the larger of the two exponents.

Step 2. Multiply numerator and denominator by 5k−n=5m−n5^{k-n} = 5^{m-n}, which is a whole number since m≥nm \ge n. This gives x=p×5m−n2m5n×5m−n=p×5m−n2m5mx = \dfrac{p \times 5^{m-n}}{2^m5^n \times 5^{m-n}} = \dfrac{p \times 5^{m-n}}{2^m5^m}.

Step 3. Combine the denominator using 2m5m=(2×5)m=10m2^m5^m = (2 \times 5)^m = 10^m, so x=p×5m−n10mx = \dfrac{p \times 5^{m-n}}{10^m}. The numerator p×5m−np \times 5^{m-n} is a whole number, call it NN, so x=N10mx = \dfrac{N}{10^m}.

Step 4. A fraction with denominator 10m10^m is, by definition, obtained from NN by shifting the decimal point mm places to the left — this always produces a finite string of digits, at most mm places long. So xx terminates, and the number of decimal places is exactly the larger of mm and nn (or fewer, if trailing zeros appear). Verified: for q=20×55=3125q = 2^0 \times 5^5 = 3125, k=mk = m becomes n=5n = 5 by symmetry and x=N/105x = N/10^5 with at most 55 decimal places, matching the worked example below.

Worked example

Without actual division, state whether 133125\dfrac{13}{3125} has a terminating or non-terminating repeating decimal expansion, and if it terminates, find it.

Step 1. Check lowest terms. 1313 is prime and 31253125 is not a multiple of 1313, so the fraction is already in lowest terms — the denominator test can be applied directly.

Step 2. Factorise the denominator: 3125=553125 = 5^5, which is 20×552^0 \times 5^5. Only the primes 22 and 55 appear (with m=0m = 0), so by the rule, 133125\dfrac{13}{3125} has a terminating decimal expansion.

Step 3. Apply the derivation to actually find it. Since n=5>m=0n = 5 > m = 0, multiply top and bottom by 25=322^5 = 32: 133125=13×323125×32=416100000\dfrac{13}{3125} = \dfrac{13 \times 32}{3125 \times 32} = \dfrac{416}{100000}.

Step 4. Read off the decimal by shifting the point five places: 416100000=0.00416\dfrac{416}{100000} = \mathbf{0.00416}, confirming both the prediction and the exact value.

Competitive stretch

Without division, classify 718\dfrac{7}{18}, and if it repeats, bound the length of the repeating block. Check lowest terms first: 77 is prime and does not divide 1818, so the fraction is reduced. Factorise: 18=21×3218 = 2^1 \times 3^2. The factor of 33 is neither 22 nor 55, so 718\dfrac{7}{18} is non-terminating repeating. A useful fact beyond the core rule: for a denominator qq in lowest terms with no factors of 22 or 55, the repeating block has length at most q−1q - 1 digits (a consequence of long division having only q−1q-1 possible nonzero remainders); here that bounds the block at 1717 digits, though in practice it is much shorter — indeed 718=0.38‾=0.38888…\dfrac{7}{18} = 0.3\overline{8} = 0.38888\ldots, a block of length one.

Common traps

  • Applying the rule to a fraction that is not yet in lowest terms. 615\dfrac{6}{15} has denominator 15=3×515 = 3 \times 5, which looks non-terminating, but in lowest terms it is 25\dfrac{2}{5}, which terminates. Always simplify first.
  • Thinking the values of mm or nn affect whether the decimal terminates. They do not — only whether 22 and 55 are the sole primes in qq matters, however large those exponents are.
  • Confusing "terminates" with "short." 1210=11024\dfrac{1}{2^{10}} = \dfrac{1}{1024} terminates but runs to ten decimal places; terminating is about the type of expansion, not its length.
  • Forgetting that an integer denominator like q=1q = 1 trivially counts as 20502^05^0 and terminates with zero decimal digits, and that the rule applies only to rational numbers — irrational numbers never terminate or repeat at all.

Ask the tutor: Want to test the denominator rule on a fraction of your own, or see why every power of 10 factors into only 2s and 5s? Ask the AI tutor to work through it with you.

Why does only the prime pair 2 and 5 matter, and not say 2 and 3

Because our number system is base ten, and 10=2×510 = 2 \times 5. A terminating decimal is always a fraction over some power of 1010, and 10k10^k factorises only into 2k2^k and 5k5^k — no other primes ever appear in a power of ten. So a denominator built purely from 22s and 55s can always be topped up with the missing factors to become a power of 1010, while any other prime, like 33, can never be cleared this way and forces the division to run forever.

Does this rule tell me what the repeating block actually looks like, or just that one exists

The rule as stated only predicts termination versus repetition from the denominator's prime factors — it does not hand you the digits or the block length directly. To find the actual repeating digits you still need to carry out the long division, watching the remainders cycle. What the theory does guarantee is an upper bound: for denominator qq (with no factors of 22 or 55) the block length is at most q−1q - 1 digits, since only that many distinct nonzero remainders exist.

Is every non-terminating decimal automatically irrational

No, and this is a common slip. A non-terminating decimal is irrational only if it also never settles into a repeating block. 0.38888…0.38888\ldots is non-terminating but it does repeat (the digit 88 forever), so it is rational — equal to 718\dfrac{7}{18}. True irrational numbers like 2\sqrt2 or π\pi are non-terminating and non-repeating: no block of digits ever recurs exactly, no matter how far you compute. Always check both conditions before calling a decimal irrational.

Before this

Where this leads