Courses / Mathematics I
Arithmetic and Number Theory

Rational and Irrational Numbers

The rational numbers Q are ratios ab of integers (b 0). Every rational has a lowest-terms form, obtained by dividing numerator and denominator by their…

Mathematics I 295 words Free to read

Fractions and the Numbers Between

The rational numbers Q\mathbb{Q} are ratios ab\frac{a}{b} of integers (b0b \neq 0). Every rational has a lowest-terms form, obtained by dividing numerator and denominator by their gcd — the unique representative with gcd(a,b)=1\gcd(a, b) = 1. Fraction arithmetic follows fixed rules: a common denominator to add (ab+cd=ad+bcbd\frac{a}{b} + \frac{c}{d} = \frac{ad + bc}{bd}), and numerator-times-numerator over denominator-times-denominator to multiply.

Rationals have a clean decimal signature: a number is rational exactly when its decimal expansion terminates or eventually repeats. 14=0.25\frac{1}{4} = 0.25 (terminates), 13=0.333\frac{1}{3} = 0.333\dots (repeats), 17=0.142857\frac{1}{7} = 0.\overline{142857} (repeats with period 6). Conversely, any terminating or repeating decimal can be written as a fraction. This is a complete characterization: terminating-or-repeating \Leftrightarrow rational.

The irrational numbers are the reals that are not rational — their decimals go on forever without repeating. Famous examples are 2\sqrt{2}, π\pi, and ee. That 2\sqrt{2} is irrational is proved by contradiction (Unit 1): assume 2=ab\sqrt{2} = \frac{a}{b} in lowest terms; then a2=2b2a^2 = 2b^2, forcing aa even, hence bb even too — contradicting lowest terms. So no such fraction exists.

A surprising fact about how these mix: between any two distinct real numbers lie both a rational and an irrational — both sets are dense in the line. Yet the rationals are countable (listable in a sequence) while the irrationals are uncountable, so in a precise sense "almost all" real numbers are irrational, even though the rationals are everywhere.

Common pitfall: believing that any decimal that "looks endless" is irrational. A decimal is irrational only if it is both non-terminating and non-repeating. 0.3330.333\dots and 0.1428570.\overline{142857} run forever but repeat, so they are perfectly rational (13\frac{1}{3} and 17\frac{1}{7}). Endlessness alone does not make a number irrational — the absence of a repeating pattern does.

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

13practice questions
2interactive scenes
Start Mathematics I free

Arithmetic and Number Theory