2.5.3 · D1Number Theory (Intermediate)

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

1,916 words9 min readBack to topic

Before we can talk about terminating and repeating decimals, we must earn every symbol the parent note throws at us. This page builds them one at a time, from absolute zero. Nothing appears here until you can see it.


The number-line picture (our home base)

Every symbol below lives somewhere on a single horizontal line. Pin this image in your mind first — everything else hangs off it.

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

1. Counting numbers and the symbol

The very first numbers you ever met were the counting numbers: — one apple, two apples. Add zero and the negatives (one step left of zero for each step right) and you get the integers.

The picture: the evenly-spaced fence posts on the number line. No posts between them.

Why the topic needs it: a rational number is built out of two integers. If you can't name the ingredients, you can't build the dish.

The symbol means "is an element of" — it points into a collection. So reads " is one of the integers." Picture an arrow landing on one of the fence posts.

Reveal — what does say in words?
"Negative three is one of the integers."

2. Building a fraction: the symbols , , and

Now take two integers and stack one over the other.

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

The picture: cut a bar (or a pizza) into equal slices, then shade of them. The fraction is the shaded amount.

Why the topic needs it: this is the literal definition of "rational." The letters and are just placeholders — actors playing the role of "some integer." When you see , hear "some whole number of slices out of some whole number of equal parts."


3. The symbol — the whole family of fractions

Collect every fraction you could ever build this way, and you get the rationals.

The picture: the number line, now filled in with dots at every fraction — packed so tightly you can't see gaps (though gaps secretly exist; that's the story of Irrational numbers and Dense sets).

Because any integer equals (one whole, undivided), every integer is also a rational. In symbols , where means "is contained inside." Picture the fence posts sitting among the denser fraction-dots.

Reveal — why is a rational number?
Because , a ratio of two integers with non-zero bottom.

4. Lowest terms and the symbol

The same position on the line can be named many ways: , , all point to the same dot. We pick the cleanest name.

The picture: — six shaded slices out of eight — but you can group them in pairs and re-see the same shading as . Once no regrouping helps, you're in lowest terms.

Why the topic needs it: the terminating/repeating test only works on the reduced fraction. A stray factor of 2 or 5 hidden in an unreduced denominator would give a wrong answer. Finding relies on breaking numbers into primes — see Prime factorization.

Reveal — what is in lowest terms and why?
, because , and dividing both by 2 removes the only shared factor.

5. Prime factorization and the symbols

To test a denominator, we crack it open into primes.

The picture: think of a number as a tower of LEGO bricks, where each brick is a prime. is three "2-bricks"; is two "2-bricks" and one "3-brick."

The exponent notation: writing the same brick many times is tedious, so . The small raised number (the exponent) counts how many copies. So , where means "no 5-bricks at all."

Why the topic needs it: the terminating rule says — the denominator's tower is built only from 2-bricks and 5-bricks. Any other brick (a 3, a 7, …) forces the decimal to repeat.


6. Base ten and why is the hero

Our whole decimal system counts in groups of ten. Each place is ten times the one to its right.

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

The picture: columns labelled — each a power of ten. A decimal like means .

The key fact: . So . A denominator made only of 2-bricks and 5-bricks can always be padded up into a pure power of ten — and then the fraction is a decimal that stops. That is the entire secret behind the terminating rule.

Reveal — why does terminate but not?
(only 2-bricks, fits into ), while carries a 3-brick that no power of ten contains.

7. Long division and the idea of a remainder

Turning into a decimal is long division carried past the decimal point.

The picture: a row of only mailboxes labelled to . Each step of the division drops a letter into one mailbox.

Why the topic needs it — the pigeonhole punchline: because only mailboxes exist, after at most division steps a remainder you've already seen must reappear. The moment it does, the whole pattern loops. That is precisely why non-terminating rationals repeat. (Study of remainders is Modular arithmetic.)


8. Euler's totient — the repetend's speed limit

The repeating block (the repetend) has a length, and that length obeys a rule.

The picture: line up dots ; keep only those not sharing a brick with ; is how many survive. For a prime , all of survive, so .

Why the topic needs it: the length of the repeating block always divides . For , and the repetend "142857" is exactly 6 long. This is a bound, not an equality — a trap the parent note warns about.


9. The overline and the "such that" bar

Two tiny notations tidy everything up.

Reveal — write using the bar.

How it all fits together

Integers Z

Fraction p over q

Prime factorization

Rationals Q

Denominator as 2 and 5 bricks

Base ten equals 2 times 5

Terminating decimals

Long division

Remainders limited to q values

Repeating decimals

Euler totient phi

Repetend length bound

Gcd and lowest terms

Read it top-down: integers give fractions, fractions give ; prime bricks + base ten decide terminating; long division's limited remainders force repeating; the totient bounds how long the repeat can be.


Equipment checklist

Test yourself — cover the right side and answer aloud.

means
the set of all integers
means
is one of the integers
means
equal pieces out of a whole cut into pieces (i.e. divided by )
Why must
cutting a whole into zero pieces is undefined; no picture exists
is
the set of all fractions with integers and
says
every integer is also a rational, since
means
the fraction is in lowest terms; top and bottom share no common factor
means
three factors of 2 multiplied:
Why matters
powers of ten are built only from 2s and 5s, so only 2/5 denominators terminate
A remainder dividing by can only be
one of — just possibilities
Why decimals of rationals must repeat
only remainders exist, so one must recur and restart the pattern
equals
(all of are coprime to 7)
means
, the 3 repeating forever