2.5.5Number Theory (Intermediate)

Real number system — ℕ ⊂ ℤ ⊂ ℚ ⊂ ℝ

3,193 words15 min readdifficulty · medium1 backlinks

The symbol ⊂ means "proper subset" — every natural number IS an integer, every integer IS a rational, every rational IS a real, but not vice versa.

Natural Numbers (ℕ)

Properties:

  • WHY these properties? Because counting objects has these behaviors naturally.
  • Closed under addition and multiplication: add or multiply two naturals → get another natural
  • NOT closed under subtraction: 3 - 5 = -2 ∉ ℕ (this motivates integers!)
  • NOT closed under division: 7 ÷ 2 = 3.5 ∉ ℕ (this motivates rationals!)
  • Has a smallest element (1 or 0 depending on definition)
  • No largest element (infinity is not a number)

Integers (ℤ)

How did we construct integers from naturals? We wanted to solve equations like x+5=3x + 5 = 3. In ℕ, this has no solution. We create negative numbers by defining them as solutions to such equations.

Formally: Define pairs (a, b) where a, b ∈ ℕ, and say (a, b) represents the integer a - b.

  • (5, 2) represents 3
  • (2, 5) represents -3
  • (5, 5) represents 0

Properties:

  • Closed under addition, subtraction, and multiplication
  • NOT closed under division: 5 ÷ 2 ∉ ℤ (motivates rationals!)
  • Forms a ring with unity (algebraic structure)

Rational Numbers (ℚ)

How do we construct rationals from integers? We want to solve qx=pqx = p for any integers p, q (q ≠ 0). Define the rational p/q as the solution.

Key insight: Different fractions can be equal! pq=rs    ps=qr\frac{p}{q} = \frac{r}{s} \iff ps = qr

WHY? Because 23\frac{2}{3} and 46\frac{4}{6} represent the same quantity (cross-multiply: 2×6 = 3×4).

Properties:

  • Closed under addition, subtraction, multiplication, AND division (except by zero)
  • Forms a field (most complete algebraic structure before reals)
  • Dense in ℝ: Between any two rationals, there's another rational Between a and b: take a+b2\text{Between } a \text{ and } b:\ \text{take } \frac{a+b}{2}
  • Countably infinite: Can be listed in a sequence using a zig–zag (pairing) enumeration of ℕ×ℕ

Construction: Let c=a+b2c = \frac{a + b}{2} (the average).

Why does this work?

  • Since a<ba < b, we have 2a<a+b<2b2a < a + b < 2b
  • Dividing by 2: a<a+b2<ba < \frac{a+b}{2} < b
  • Since sum and division of rationals is rational, cQc \in \mathbb{Q}

WHAT does density mean? The rationals have no "gaps" in the sense that you can always zoom in further. BUT this doesn't mean they fill the entire number line — that's where irrationals come in!

Verify: 13=412<512<612=12\frac{1}{3} = \frac{4}{12} < \frac{5}{12} < \frac{6}{12} = \frac{1}{2}

Why this step? Convert to common denominator (12) to compare.

Can we find another? Yes! Between 1/3 and 5/12: 412+5122=924=38\frac{\frac{4}{12} + \frac{5}{12}}{2} = \frac{9}{24} = \frac{3}{8}. This process never ends — infinitely many rationals between any two rationals!

Irrational Numbers and Real Numbers (ℝ)

Real numbers ℝ = ℚ ∪ (irrationals) — the complete number line with NO gaps.

WHY do irrationals exist? The rationals have "holes" — there are limits that rational sequences approach but never reach.

Goal: Show 2Q\sqrt{2} \notin \mathbb{Q}

Method: Proof by contradiction.

Assume 2\sqrt{2} is rational. Then we can write: 2=pq\sqrt{2} = \frac{p}{q} where p, q ∈ ℤ, q ≠ 0, and the fraction is in lowest terms (gcd(p,q) = 1).

Step 1: Square both sides. 2=p2q22 = \frac{p^2}{q^2} WHY? To eliminate the square root and work with integers.

Step 2: Multiply by q2q^2. 2q2=p22q^2 = p^2 WHAT does this tell us? p2p^2 is even (it equals 2 times something).

Step 3: If p2p^2 is even, then p is even. WHY? If p were odd, then p = 2k+1 for some integer k, so: p2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1p^2 = (2k+1)^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1 which is odd. Contradiction! So p must be even.

Step 4: Since p is even, write p = 2m for some integer m. Substitute into 2q2=p22q^2 = p^2: 2q2=(2m)2=4m22q^2 = (2m)^2 = 4m^2 q2=2m2q^2 = 2m^2 WHAT does this tell us? q2q^2 is even, so q is even (same reasoning as Step 3).

Step 5: The contradiction! We've shown both p and q are even, meaning they share a common factor of 2. But we assumed gcd(p,q) = 1 (lowest terms). Contradiction!

Conclusion: Our assumption was false. 2\sqrt{2} cannot be written as p/q, so √2 is irrational. □

Solution:

  • 7: Natural ✓, Integer ✓, Rational ✓ (7/1), Real ✓
  • -3/4: Integer ✗, Rational ✓, Real ✓
  • 0: Natural ✗ (usually), Integer ✓, Rational ✓ (0/1), Real ✓
  • √9 = 3: Natural ✓, Integer ✓, Rational ✓, Real ✓ WHY? Simplify first! √9 = 3, which IS rational.
  • √7 ≈ 2.645...: Rational ✗ (no perfect square), Irrational ✓, Real ✓
  • π ≈ 3.14159...: Irrational ✓, Real ✓
  • 0.666... = 2/3: Rational ✓! (Repeating decimals are rational), Real ✓ How to convert: Let x = 0.666..., then 10x = 6.666..., so 10x - x = 6, giving x = 6/9 = 2/3.

The Subset Structure

WHAT does ⊂ mean exactly? ABA \subset B means:

  1. Every element of A is in B (A ⊆ B)
  2. B contains at least one element NOT in A (A ≠ B)

WHY proper subsets?

  • Every natural number is an integer: 5 ∈ ℕ → 5 ∈ ℤ
  • But some integers aren't natural: -3 ∈ ℤ but -3 ∉ ℕ
  • Every integer is rational: 5 = 5/1
  • But some rationals aren't integers: 1/2 ∈ ℚ but 1/2 ∉ ℤ
  • Every rational is real: 3/4 ∈ ℝ
  • But some reals aren't rational: √2 ∈ ℝ but √2 ∉ ℚ

HOW MANY numbers in each set?

  • ℕ: Countably infinite (ℵ₀)
  • ℤ: Countably infinite (same "size" as ℕ!)
  • ℚ: Countably infinite (still ℵ₀)
  • ℝ: Uncountably infinite — its cardinality is 202^{\aleph_0} (the cardinality of the continuum), strictly larger than ℵ₀

WHY are the rationals the same size as naturals? Because ℚ can be put in one-to-one correspondence with ℕ using a zig–zag (pairing) enumeration of ℕ×ℕ, so ℚ is countable. WHY are reals bigger? Cantor's diagonal argument proves that ℝ CANNOT be listed in any such sequence, so ℝ is uncountable, with R=20>0|\mathbb{R}| = 2^{\aleph_0} > \aleph_0.

Note on ℵ₁: Whether 20=12^{\aleph_0} = \aleph_1 is the Continuum Hypothesis, which is independent of the standard ZFC axioms (Gödel & Cohen). So we write R=20|\mathbb{R}| = 2^{\aleph_0}, not "1\aleph_1".

The steel-man: Density is a powerful property. In a practical sense, for finite precision (computers, measurements), rationals DO suffice. Any real can be approximated arbitrarily well by rationals.

The fix: Density ≠ completeness. Yes, rationals are dense, BUT there are still infinitely many "holes" where irrationals live.

  • Example: The sequence 1, 1.4, 1.41, 1.414, 1.4142, ... (decimal approximations of √2) consists of rationals, but the limit √2 is NOT rational.
  • The rationals are countable, but the reals are uncountable — the "holes" are infinitely more numerous than the rationals!

Think of it like: rational numbers are stars in the sky (dense — everywhere you look you see stars), but the darkness (irrationals) fills infinitely more space.

The steel-man: Pattern recognition in digits is hard. π does have streaks like "999" that appear (Feynman point). Looks like repetition!

The fix: The distinction is eventually periodic vs. never periodic:

  • Rational: 0.333... (repeats 3), 0.142857142857... (repeats 142857), even 2.0 = 2.000... (repeats 0)
  • Irrational: √2 = 1.41421356... (never settles into a repeating cycle, PROVEN to never repeat)

Theorem: A decimal is eventually periodic ⟺ the number is rational.

WHY? If x = 0.abc̄ (bar means repeat), multiply by 10ⁿ to shift the repeat, then subtract to get a rational equation.

Each set asks: "Am I enough?" and the next set answers: "No, here's what you're missing!"

Recall Explain to a 12-year-old

Imagine you're playing a video game where you collect coins.

Natural numbers (ℕ): You start by just counting: "I have 1 coin, 2 coins, 3 coins..." Great for counting!

Integers (ℤ): But then the game adds "debt" — you can borrow coins and go negative. Now you need -1, -2, -3 to track what you owe. Integers = all counting numbers PLUS zero PLUS negative numbers.

Rational numbers (ℚ): Then you want to split coins with friends. Half a coin = 1/2. Three friends share 7 coins = 7/3 each. Any fraction (like 5/2, -3/4) is rational. If you can write it as "number over number," it's rational.

Irrational numbers: Here's the weird part — some numbers CAN'T be written as fractions! Like if you have a perfect square (a square where each side is 1 coin long), the diagonal is √2 coins long. But √2 can't be written as ANY fraction — it's 1.41421356... and the digits go on FOREVER without repeating. That's irrational.

Real numbers (ℝ): Put all rationals and irrationals together, you get the complete number line with no gaps — that's the reals. Every point on an infinite ruler.

The symbol ⊂ means "fits inside": naturals fit inside integers, integers fit inside rationals, rationals fit inside reals. Each step adds something the previous set was missing!

Connections

  • Number Theory Fundamentals — this is the foundation
  • Properties of Operations — closure, commutativity, associativity for each set
  • Decimal Representations — every real has a decimal, rationals are eventually periodic
  • Cardinality and Infinity — comparing sizes of infinite sets
  • Field Axioms — ℚ and ℝ are fields, ℕ and ℤ are not
  • Dedekind Cuts — one way to construct ℝ from ℚ rigorously
  • Completeness Axiom — what makes ℝ "complete" but ℚ incomplete
  • Algebraic vs. Transcendental Numbers — another way to classify reals
  • Cantor's Diagonal Argument — proof that ℝ is uncountable
  • Continuum Hypothesis — is 20=12^{\aleph_0} = \aleph_1? (independent of ZFC)

#flashcards/maths

What are the natural numbers (ℕ)?
The counting numbers {1, 2, 3, 4, ...}, sometimes including 0. Closed under addition and multiplication but NOT subtraction or division.
What are the integers (ℤ)?
All whole numbers including zero and negatives: {..., -2, -1, 0, 1, 2, ...}. Closed under addition, subtraction, and multiplication but NOT division.
What are the rational numbers (ℚ)?
All numbers expressible as p/q where p, q ∈ ℤ and q ≠ 0. Includes all integers (write as n/1) and fractions. Closed under +, −, ×, ÷.
What are the irrational numbers?
Real numbers that CANNOT be expressed as p/q (fraction of integers). Examples: √2, π, e. Their decimals never repeat or terminate.
What are the real numbers (ℝ)?
The union of all rational and irrational numbers. The complete number line with no gaps. Uncountably infinite.
What does ℕ ⊂ ℤ ⊂ ℚ ⊂ ℝ mean?
Each set is a proper subset of the next: every natural is an integer, every integer is rational, every rational is real, but not vice versa.
Why was each number set invented?
ℕ for counting; ℤ to solve a − b when a < b (negatives); ℚ to solve division p ÷ q (fractions); ℝ to fill the gaps (√2, π).
Prove that √2 is irrational.
Assume √2 = p/q in lowest terms. Then 2q² = p², so p is even (p = 2m). Substituting: 2q² = 4m², so q² = 2m², meaning q is even. But then p and q share factor 2, contradicting lowest terms. Therefore √2 is irrational.
What does "dense in ℝ" mean for ℚ?
Between any two rational numbers, there exists another rational number. Formula: between a and b, take (a+b)/2. This can be repeated infinitely.
Why are repeating decimals rational?
If x = 0.abc̄, multiply by 10ⁿ to shift the repeat, subtract to eliminate it, and solve for x as a fraction. Example: 0.666... → 10x − x = 6 → x = 6/9 = 2/3.
True or false: The rationals fill the entire number line because they are dense.
False. Dense means no gaps between rationals, but there are still infinitely many irrationals (uncountably many) that are NOT rational. Density ≠ completeness.
Which sets are countably infinite?
ℕ, ℤ, and ℚ are all countably infinite (same cardinality ℵ₀). ℚ is countable via a zig–zag enumeration of ℕ×ℕ.
Which set is uncountably infinite, and what is its cardinality?
ℝ is uncountably infinite. Its cardinality is 202^{\aleph_0} (the continuum). Cantor's diagonal argument proves ℝ cannot be listed in a sequence.
Is |ℝ| = ℵ₁ a fact?
No. Whether 20=12^{\aleph_0} = \aleph_1 is the Continuum Hypothesis, which is independent of ZFC. We only assert R=20>0|\mathbb{R}| = 2^{\aleph_0} > \aleph_0.
How do you test if a decimal is rational?
If it terminates (0.25) or is eventually periodic (0.333..., 0.142857142857...), it's rational. If it never repeats and never terminates, it's irrational.
Give the closure properties of each set.
ℕ: +, × only. ℤ: +, −, × only. ℚ: +, −, ×, ÷ (÷0 excluded). ℝ: +, −, ×, ÷ (÷0 excluded).

Concept Map

not closed under subtraction

subset of

not closed under division

subset of

has gaps like sqrt2

subset of

constructed from pairs a,b as a-b

defined as p over q, q not 0

closed under add and multiply

forms a ring with unity

forms a field

complete number line no gaps

Natural numbers N counting

Integers Z

Rationals Q

Reals R

Construction method

Closure properties

Algebraic structure

Completeness

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, yeh number system ka concept bilkul aisa hai jaise humne dheere-dheere apne numbers ko powerful banaya. Shuru mein sirf counting ke liye natural numbers (ℕ) the — 1, 2, 3 jaise sheep gino wale numbers. Par problem aayi jab kisi ka udhaar chukana ho ya negative temperature likhni ho, toh humein integers (ℤ) chahiye the jisme zero aur negatives aa gaye. Phir jab 1 pizza ko 3 logo mein baatna tha, tab fractions yaani rational numbers (ℚ) invent hue. Aur last mein jab pata chala ki √2 ko kisi fraction mein likh hi nahi sakte (unit square ka diagonal!), tab real numbers (ℝ) aaye jo pura number line bina kisi gap ke bhar dete hain. Yeh ⊂ symbol matlab har natural number ek integer hai, har integer ek rational hai — par ulta zaroori nahi.

Ab isme ek core idea hai jise "closure" kehte hain — yeh dekhna ki kisi operation ke baad answer usi set mein rehta hai ya nahi. Jaise natural numbers add ya multiply karo toh natural hi milta hai, par 3 - 5 = -2 karo toh bahar chala jaata hai. Yahi "gap" humein next number set banane ke liye majboor karta hai! Isi tarah rationals ki ek khaas property hai "density" — kisi bhi do rationals ke beech mein hamesha ek aur rational mil jaata hai, bas dono ka average (a+b)/2 le lo. Yeh proof simple hai par bahut powerful concept sikhata hai.

Yeh cheez samajhna kyun zaroori hai? Kyunki yeh poore maths ki foundation hai, beta. Jab aage tum limits, calculus, ya algebra padhoge, tab yeh samajh ki kaunsa number system kis problem ko solve kar sakta hai — yeh tumhare liye base banegi. Exam mein bhi closure aur density wale questions seedhe aate hain, aur agar tumne yeh "why" wala logic pakad liya na, toh ratta maarne ki zaroorat hi nahi padegi. Numbers sirf symbols nahi, ek evolution story hai jo har baar ek nayi problem solve karne ke liye grow hui.

Go deeper — visual, from zero

Test yourself — Number Theory (Intermediate)

Connections