Foundations — Rational numbers — definition, decimal expansion (terminating - repeating)
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.

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?
2. Building a fraction: the symbols , , and
Now take two integers and stack one over the other.

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?
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?
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.

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?
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
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.