2.5.3 · D5Number Theory (Intermediate)

Question bank — Rational numbers — definition, decimal expansion (terminating - repeating)

1,761 words8 min readBack to topic

Two words we lean on constantly. A repetend is the block of digits that repeats forever, written with a bar, like the in . And lowest terms means the fraction has no common factor left to cancel — .

The figure below shows this split as a prime-factor picture — the whole game of "terminate vs repeat" lives in which coloured primes appear.

Figure — Rational numbers — definition, decimal expansion (terminating - repeating)

True or false — justify

True or false: (nines forever) is a different number from .
False — they are the same number. exactly, because (multiply by 10, subtract: ). Two decimal strings can name one rational.

The number-line picture below makes this concrete: crowd up to with the gap shrinking to zero, so their infinite limit is .

Figure — Rational numbers — definition, decimal expansion (terminating - repeating)
True or false: every terminating decimal is also a repeating decimal.
True, in a trivial sense — you can append repeating zeros: . Terminating is just the special case where the repetend is .
True or false: if a decimal repeats, the number must be rational.
True. A repeating pattern lets you subtract two shifted copies and cancel the tail, always leaving an integer over (times a power of 10) — a fraction. Repetition guarantees rationality.
True or false: is irrational because both addends have infinite decimals.
False. The sum is , which terminates. "Infinite decimal" does not mean irrational — rationals with a forbidden prime also run forever (but repeat).
True or false: a fraction in lowest terms with terminates.
True. , only allowed primes, so it terminates regardless of . Example: .
True or false: whether terminates can depend on the numerator .
False, once in lowest terms. Terminating depends only on 's prime factors. But matters for reducing: looks like it has factor 3, yet reduces to , which terminates.
True or false: putting a minus sign in front, like , can change whether the decimal terminates or repeats.
False. The sign only flips the number to the other side of zero; it leaves every digit and the whole terminate/repeat pattern untouched. repeats exactly as does.
True or false: the number (concatenating the counting numbers) is rational.
False. Its digit blocks keep growing and never settle into a fixed repeating block, so it cannot terminate or repeat — it is irrational.
True or false: between and there are only finitely many rationals.
False. The rationals are a dense set — between any two of them lies another (e.g. their average), so there are infinitely many.

Spot the error

", so 6 has a prime factor other than 2 and 5 — but 6 also has factor 2, contradiction!" Where's the flaw?
No contradiction. Having some forbidden prime (the 3) is enough to force repeating. The 2 alone would terminate; the 3 ruins it. Termination needs the denominator to have only allowed primes — one forbidden prime spoils it.
" has repetend length 6, so always repeats with digits." Find the error.
The rule is that repetend length divides , it does not equal . For , only because 7 is prime; has length 6 while .
"To convert I multiply by 10 once and subtract." Why does this fail?
One multiply-and-subtract only cancels the tail if the repetend and the whole number are already aligned. With a non-repeating head (), you need two shifts — one to jump past the head, one more to line up the repetend — then subtract.
" has no 2 or 5, so never gives a whole-number remainder in long division." Where's the slip?
The statement about remainders is fine, but its phrasing hides the real point: remainders never hit 0 only because they must recycle among , forcing repetition, not termination. .
" must be wrong, because is clearly less than 1." Spot the mistaken intuition.
The intuition treats as "stopping just short." It doesn't stop — with infinitely many nines the gap to 1 is exactly zero. Algebra () and limits both confirm .
"Since , is rational." What's wrong?
is a rational approximation, not . The true never repeats, so it is irrational; merely agrees for a couple of digits.
"The repetend of can start with a non-repeating part only if is even." Correct the claim.
The non-repeating "head" appears whenever has any allowed prime alongside a forbidden prime — so it can happen for (odd) too: .

Why questions

Why can a long division of never repeat for more than digits before a remainder recurs?
The nonzero remainders live in — only possible values. By the pigeonhole principle a remainder must repeat within steps, and once a remainder returns the whole cycle returns.

The remainder-cycle figure below traces this for : the remainders loop back to , and the digits ride along that loop.

Figure — Rational numbers — definition, decimal expansion (terminating - repeating)
Why does the denominator being force termination, in one sentence?
You can multiply top and bottom to make the denominator a power of ten (), and any integer over is just that integer with the decimal point moved places — a finite string.
Why do we insist on "lowest terms" before reading off the terminate/repeat rule?
Because hidden common factors can cancel a forbidden prime: looks like it has a 3, but reduces to . Only the reduced denominator's primes decide the behaviour.
Why is (from Euler's totient function) the natural bound on repetend length for coprime to 10?
The repetend length is the smallest power with (the order of 10 mod in Modular arithmetic), and by Euler's theorem that order divides .
Why does multiplying by (with = repetend length) make subtraction cancel the infinite tail?
Shifting by exactly one full period lines the tails up digit-for-digit, so and have identical fractional parts — subtracting kills them and leaves an integer.
Why do rationals leave "gaps" in the number line even though they are dense?
Dense means no two rationals sit with empty space of rationals between them, but limits of rational sequences (like ) can fall between them — those limit points are the irrationals filling the gaps to form the Real numbers.

Edge cases

What is the decimal expansion of , and does it terminate or repeat?
exactly — for any nonzero . It terminates trivially; the "repeat vs terminate" rule is about nonzero numerators.
Does with (an integer) terminate? Which prime-factor rule applies?
Yes — fits "only allowed primes" vacuously, so integers terminate: . No forbidden primes exist to cause repetition.
Is a repeating decimal or a terminating one?
We classify it as terminating, using the sharp rule "a decimal terminates if from some point on every digit is ." Since is all zeros, it satisfies that rule; a decimal is called repeating only when its shortest repetend is a non-zero block — so sits firmly on the terminating side, not in between.
How does a leading minus sign, as in , interact with the terminate/repeat test?
It doesn't — the test reads only the reduced denominator's primes, and the sign lives with the numerator. terminates just like ; reflect any expansion through zero and the pattern is unchanged.
For with having both an allowed prime and a forbidden prime (say ), what does the decimal look like structurally?
A finite non-repeating head followed by a repeating tail, e.g. : the 2 produces the one-digit head, the 3 produces the repeating part.
Can a rational number have a repetend longer than the number of digits in its denominator?
Yes. Length is bounded by , not the digit-count of . For example has a 96-digit repetend, far longer than the two digits of "97."
What happens to the terminate/repeat classification if you write the number in base 6 instead of base 10?
It can change, because the "allowed primes" are now the prime factors of the new base. In general, in base a reduced terminates exactly when every prime factor of also divides — otherwise it repeats. Base makes and allowed, so terminates as even though it repeats in base 10.

The table figure below lines up across bases 10, 6 and 2 so you can watch "allowed primes" swap as the base changes.

Figure — Rational numbers — definition, decimal expansion (terminating - repeating)
Recall One-line summary of every trap

Terminating vs repeating depends only on the reduced denominator's primes relative to the base (allowed = factors of the base); repetition (not "infinite length") is what guarantees rationality; a sign never changes the pattern; and bounds — never equals — the repetend length.