Types of Numbers

Why Different Types?

Not all numbers are the same.

Some numbers count things. Some measure things. Some can’t even be written as fractions.

Understanding the types of numbers helps us know what we’re working with.


The Number Hierarchy

Numbers form a hierarchy. Each type contains the previous one.


Natural Numbers (ℕ)

The counting numbers: 1, 2, 3, 4, 5, …

These are the first numbers humans ever used. Counting sheep, counting days.

  • No zero
  • No negatives
  • No fractions

Integers (ℤ)

Take the natural numbers. Add zero and negatives.

Z={,3,2,1,0,1,2,3,}\mathbb{Z} = \{\ldots, -3, -2, -1, 0, 1, 2, 3, \ldots\}

The “Z” comes from German “Zahlen” (numbers).

Now we can represent debts, temperatures below zero, floors below ground.


Rational Numbers (ℚ)

Any number that can be written as a fraction ab\frac{a}{b} where aa and bb are integers and b0b \neq 0.

The “Q” stands for “quotient” (the result of division).

Examples:

NumberAs a fraction
12\frac{1}{2}Already a fraction
0.750.7534\frac{3}{4}
5551\frac{5}{1}
2-221\frac{-2}{1}
0.333...0.333...13\frac{1}{3}

Key property: A decimal is rational if and only if it terminates or repeats.

DecimalPatternRational?
0.50.5TerminatesYes
0.333...0.333...Repeats (3)Yes
0.142857142857...0.142857142857...Repeats (142857)Yes
3.14159265...3.14159265...No patternNo

Irrational Numbers

Numbers that cannot be written as a fraction.

“Irrational” literally means “not a ratio.”

Famous examples:

  • 21.41421356...\sqrt{2} \approx 1.41421356...
  • π3.14159265...\pi \approx 3.14159265...
  • e2.71828182...e \approx 2.71828182...

Their decimals go on forever without repeating.


Why can’t 2\sqrt{2} be a fraction?

This was proven by the ancient Greeks. If 2=ab\sqrt{2} = \frac{a}{b} for some integers, you reach a contradiction.

The proof shocked mathematicians. Numbers exist that cannot be written as ratios.


Real Numbers (ℝ)

All numbers on the number line.

R=RationalsIrrationals\mathbb{R} = \text{Rationals} \cup \text{Irrationals}

Every point on the number line is either rational or irrational. Never both, never neither.

The real numbers “fill in” the number line completely. No gaps.


Summary

SetSymbolContainsExamples
NaturalN\mathbb{N}Counting numbers1, 2, 3, 100
IntegerZ\mathbb{Z}ℕ + zero + negatives-5, 0, 42
RationalQ\mathbb{Q}Fractions12\frac{1}{2}, 0.750.75, 3-3
IrrationalNon-fractions2\sqrt{2}, π\pi, ee
RealR\mathbb{R}ℚ + IrrationalsEverything above

Key insight: Every real number is either rational (can be a fraction) or irrational (cannot). There’s no in-between.