Worked examples — Real number system — ℕ ⊂ ℤ ⊂ ℚ ⊂ ℝ
This page is the drill hall for the parent topic. The parent showed you the ideas; here we hit every kind of question the topic can throw at you. First we lay out a matrix of every case-class, then we work examples that together fill in every cell.
The scenario matrix
Every cell below is covered by at least one worked example (its label is in the last column).
| Case class | The trap / edge it tests | Covered by |
|---|---|---|
| Classify a "clean" number | Is irrational? (perfect square in disguise) | Ex 1 |
| Classify signs & zero | Is natural? Is a negative rational? | Ex 1 |
| Terminating decimal → fraction | finite digits after the point | Ex 2 |
| Pure repeating decimal → fraction | Ex 3 | |
| Mixed (delayed) repeat → fraction | non-repeating head + repeating tail | Ex 3 |
| Density: rational between two rationals | the averaging trick, common denominators | Ex 4 |
| Density: rational between two irrationals | truncate the decimals | Ex 5 |
| Prove irrationality | contradiction, parity | Ex 6 |
| Prove sum/product stays rational or breaks | rational ± irrational, rational × irrational | Ex 7 |
| Cardinality reasoning | countable vs uncountable, ℤ vs ℕ | Ex 8 |
| Limiting behaviour (a "hole") | a rational sequence with irrational limit | Ex 9 |
| Real-world word problem | rounding, exact vs approximate | Ex 10 |
Prerequisites you may want open: Decimal Representations, Number Theory Fundamentals, Cardinality and Infinity, Cantor's Diagonal Argument.
Ex 1 — Classify signs, zero, and a disguised perfect square
Step 1 — Simplify anything hiding under a root. because . Why this step? is only irrational when the number under it is not a perfect square. Never classify a root before simplifying — that is exactly the trap.
Step 2 — Walk the ladder ℕ ⊂ ℤ ⊂ ℚ ⊂ ℝ for each.
| Number | ℕ? | ℤ? | ℚ? | Irr? | ℝ? | reason |
|---|---|---|---|---|---|---|
| ✓ | ✓ | ✓ () | ✗ | ✓ | a counting number | |
| ✗ | ✓ | ✓ () | ✗ | ✓ | negative → not natural | |
| ✗* | ✓ | ✓ () | ✗ | ✓ | *not natural under | |
| ✓ | ✓ | ✓ | ✗ | ✓ | perfect square! | |
| ✗ | ✗ | ✗ | ✓ | ✓ | 5 not a perfect square | |
| ✗ | ✗ | ✓ | ✗ | ✓ | not a whole number |
Why this step? Each column is a "does it satisfy the definition" check. A ✓ in ℕ forces ✓ all the way down the ladder; an ✗ in ℚ forces "irrational."
Verify: is not a whole number and 5 has no integer square root, so it is genuinely irrational; terminates, so it is rational. ✓
Ex 2 — Terminating decimal to a fraction
Step 1 — Put the digits over the matching power of ten. There are 3 digits after the point, so Why this step? "0.375" literally means thousandths — that is the definition of decimal place value (Decimal Representations).
Step 2 — Reduce by the gcd. , so Why this step? Lowest terms means dividing top and bottom by their greatest common divisor.
Verify: . ✓
Ex 3 — Repeating decimals (pure and delayed) to fractions
Part (a) — pure repeat.
Step 1 — Name it and shift by one repeat-length. Let . The block "7" has length 1, so multiply by : Why this step? Shifting by exactly one block makes the infinite tails identical.
Step 2 — Subtract to cancel the tail. Why this step? The endless tails match exactly, so their difference is — the infinity disappears.
Verify: ✓
Part (b) — delayed repeat.
Step 1 — Shift the non-repeating head out. Let . Two digits ("41") before the repeat, so Why this step? We move the fixed head "41" to the left of the point so only the repeating tail remains after the point.
Step 2 — Shift one more block and subtract. So (divide by ). Why this step? Subtracting two shifts that share the same tail cancels it again.
Verify: ✓
Ex 4 — Density: a rational between two rationals

Step 1 — Common denominator to compare. and , so . Why this step? Same denominator just compare numerators. In the figure, the two blue dots labelled and sit right next to each other — the whole picture is zoomed into that tiny interval.
Step 2 — Take the average. Why this step? satisfies because . The yellow dot in the figure is exactly this midpoint, dropped between the two blue dots.
Step 3 — Do it again (density never stops). Between and : Why this step? The same construction works on the new, smaller interval. The green dot in the figure is this second midpoint — showing you can keep splitting forever, so there are infinitely many rationals in any gap.
Verify: and ✓
Ex 5 — Density: a rational between two irrationals
Step 1 — Get enough decimal digits. and . Why this step? We need a place value where the two numbers already disagree so a "rounded" number can slip between them.
Step 2 — Pick a short terminating decimal in the gap. We need a rational with . Since and , the number sits above and below . Take Why this step? A terminating decimal is automatically rational; here .
Verify: , and . ✓
Ex 6 — Prove an irrationality (parity by contradiction)
Step 1 — Assume it's rational in lowest terms. Suppose with . Square: . Why this step? Contradiction proofs start by assuming the opposite; "lowest terms" is the fact we will violate.
Step 2 — Deduce . is a multiple of 3, so , hence (because 3 is prime — if 3 divides a product , it divides a factor). Write . Why this step? The whole proof hinges on 3 being prime, which powers this divisibility step (Number Theory Fundamentals).
Step 3 — Deduce . . Why this step? Same divisibility logic applied to .
Step 4 — Collide with lowest terms. Both and are divisible by 3, contradicting . So .
Verify: never repeats or terminates, consistent with irrationality. ✓
Ex 7 — Combining rationals with irrationals: sum AND product
Step 1 — (a) Sum: suppose were rational, call it . Then . But is rational (rationals are closed under subtraction), which would make rational — contradiction (Ex 6-style fact). So is irrational. Why this step? Isolate the irrational part; if the rest is rational, the irrational is forced to be rational — impossible.
Step 2 — (b) Sum that cancels: simplify first. . The two irrational pieces cancel! Why this step? Never assume; a sum of two irrationals can be rational. Here .
Step 3 — (c) Product by a non-zero rational: suppose were rational. Then , and dividing a rational by the non-zero rational gives a rational — again forcing , impossible. So is irrational. Why this step? Multiplying an irrational by a non-zero rational always keeps it irrational, by the same isolate-and-contradict move.
Step 4 — (d) Product by zero: the exception. , which is rational. The "non-zero" clause in Step 3 mattered — multiplying by collapses everything to . Why this step? Zero is the degenerate case: it wipes out the irrational, so the product lands back in ℚ.
Verify: (non-repeating); ; (non-repeating); . ✓
Ex 8 — Cardinality: is ℤ the same "size" as ℕ?

Step 1 — Zig-zag through the integers. List them In the figure, the green arcs show this bounce: start at , hop to , back to , out to , and so on. Each blue dot is an integer; the yellow label above it is its position in the list. Why this step? "Countable" means there exists a one-to-one list indexed by ℕ (size ). Bouncing out from 0 guarantees every integer appears at a finite step — nothing is skipped and nothing repeats.
Step 2 — Formula for the pairing. gives — exactly the yellow-labelled order in the figure. Why this step? An explicit bijection (a rule that pairs each natural with exactly one integer and vice versa) is airtight proof of "same size."
Step 3 — Why ℝ escapes: Cantor's diagonal argument. Suppose someone claims a complete list of all reals in , written as decimals: Now build a new number by walking down the diagonal and changing each digit: let if , and if . Then differs from in place 1, from in place 2, from in place — so is not on the list, yet it is a real number in . The list was supposed to be complete: contradiction. So no list can hold all reals — ℝ is uncountable, . See Cantor's Diagonal Argument. Why this step? Countability is exactly the claim "a complete list exists." The diagonal number defeats any such list, which is precisely why ℝ is a strictly bigger infinity than ℤ or ℕ.
Verify: — a valid start of an every-integer-once list; and the diagonal differs from each in position by construction (choosing digits 4/5 avoids the ambiguity), so it genuinely lies off any list. ✓
Ex 9 — A limiting "hole": rational sequence, irrational limit
Step 1 — Identify the target. Each term is truncated to more places: . The limit is . Why this step? The truncations of a number's decimal expansion converge to that number — each extra digit pins it down 10× tighter.
Step 2 — Note the punchline. is irrational (Ex 6-style), yet every sequence term is rational. This is a hole in ℚ: the sequence "should" have a limit sitting right there, but in ℚ that point is missing. ℝ fills it — that's the Completeness Axiom. Why this step? It shows density (rationals everywhere) is weaker than completeness (no gaps), exactly the parent's warning.
Verify: , confirming the terms approach . ✓
Ex 10 — Real-world: exact vs rounded
Step 1 — Exact side. Side metres. Why this step? Area of a square is , so ; factor out the perfect square 4.
Step 2 — Is it rational? is not a perfect square, so (hence ) is irrational. The decimal cannot be exact — it's a rounding. Why this step? Same disguised-root check as Ex 1: only perfect-square radicands give rationals.
Step 3 — Error of the rounding. , so the worker's is short by Why this step? In real measurement, rationals approximate reals to any needed precision — the practical steel-man from the parent's mistake callout.
Verify: exactly; and , confirming it's only approximate. ✓
Recall Self-test (reveal after answering)
Turn into a fraction. ::: . Is rational? ::: Yes — it equals ; two irrationals can cancel. Is rational? ::: No — a non-zero rational times an irrational is irrational. Why is rational but not? ::: 16 is a perfect square (); 5 is not, so its root can't be written . Is ℤ bigger than ℕ? ::: No — both are countable () via the zig-zag bijection.