Rationals and irrationals together make the real numbers ℝ: the complete, unbroken number line. ℕ ⊂ ℤ ⊂ ℚ, and ℚ together with the irrationals makes ℝ.
Divide p by q and one of two things happens:
- It terminates: 3/8 = 0.375.
- It repeats: 5/11 = 0.454545… = 0.4̅5̅.
Why must it repeat? Dividing by 7, the only possible remainders are 1 to 6. Sooner or later a remainder comes back, and from then on the digits loop.
Predicting without dividing: write p/q in lowest terms. The decimal terminates exactly when q has no prime factors other than 2 and 5, because then we can make the denominator a power of 10:
3/20 = 3/(2² × 5) = (3 × 5)/(2² × 5²) = 15/100 = 0.15.
- 7/20, 13/250, 18/125 terminate (18/125 = 0.144, 3 places).
- 4/15 repeats (15 has the factor 3).
Irrational numbers have decimals that never end and never repeat: √2 = 1.41421356…, π = 3.14159265…
Beyond the line: no real number squared is negative, so √−1 has no place on the number line. Mathematicians created imaginary numbers (using i) for it; they are used in electrical engineering and in the technology inside your phone.
Tap the diagram to enlarge it
- Rational: ends or repeats
- Only 2s and 5s → terminates
- Irrational: never ends, never repeats