1. Natural Numbers and Integers
1.1 Natural Numbers (โ)
โ ๏ธ CRITICAL COURSE-SPECIFIC CONVENTION
In this course, natural numbers INCLUDE 0.
Note: Some textbooks exclude 0 from natural numbers, but THIS COURSE INCLUDES IT.
Key Concepts
- Natural numbers are used for counting
- They represent abstract quantities
- The number 0 is of Indian origin and is crucial for our place value numbering system
- Numbers like 7 represent what is common between different collections (7 balls, 7 pencils)
1.2 Integers (โค)
Definition
Key Properties
- Integers extend natural numbers with negative numbers
- All natural numbers are integers (โ โ โค)
- Integers are discrete: every integer has a unique "next" and "previous" integer
Arithmetic Operations on Integers
- Addition (+): Combining quantities
- Subtraction (โ): Finding difference
- Multiplication (ร): Repeated addition
- Division (รท): Splitting into equal parts
- Exponentiation (m^n): Repeated multiplication
Division with Quotient and Remainder
For integers a and b (b โ 0):
- Quotient (q): The integer number of times b goes into a
- Remainder (r): What's left over
Modulo Operation
a mod b = remainder when a is divided by b
Example: 17 mod 5 = 2 (since 17 = 5 ร 3 + 2)
Divisibility
We say a | b (a divides b) if a mod b = 0
Factors of a number n are all numbers that divide n
Example: Factors of 24 are {1, 2, 3, 4, 6, 8, 12, 24}
1.3 Rational Numbers (โ)
Definition
A rational number is any number that can be expressed as p/q where:
- p, q โ โค (both are integers)
- q โ 0 (denominator cannot be zero)
Examples: 3/5, 6/10, -7/4, 18/60
Non-Unique Representation
Rational numbers do NOT have unique representations
Example: 3/5 = 6/10 = 30/50 = ...
Why? Multiplying both numerator and denominator by the same non-zero number gives an equivalent fraction
Greatest Common Divisor (GCD)
Definition: gcd(m, n) is the largest number that divides both m and n
Finding GCD using Prime Factorization
- Find prime factorization of both numbers
- Identify common prime factors
- Multiply the common primes
Example
- 18 = 2 ร 3 ร 3
- 60 = 2 ร 2 ร 3 ร 5
- Common factors: 2 ร 3 = 6
- Therefore, gcd(18, 60) = 6
Reducing to Lowest Terms: 18/60 = (18รท6)/(60รท6) = 3/10
Density of Rational Numbers
Theorem: Rational numbers are dense
Definition of Density: Between any two rational numbers, there exists another rational number
Proof: For any r < r', the average (r + r')/2 lies between them
Implication: There is NO "next" rational number - unlike integers, we cannot find the immediate successor
1.4 Real Numbers (โ)
Beyond Rationals
Motivation: Not every point on the number line is a rational number
Example - Square Roots:
- Perfect squares: 1, 4, 9, 16, 25, ..., 256, ...
- Their square roots: 1, 2, 3, 4, 5, ..., 16, ...
- But what about โ2, โ3, โ5, โ6?
Real Numbers (โ)
Definition: โ = โ โช {all irrational numbers}
- Real numbers include ALL rational and irrational numbers
- Every point on the number line is a real number
Hierarchy
- Every natural number is an integer
- Every integer is a rational number (can write as n/1)
- Every rational number is a real number
2. Sets
Basic Definition
Informal Definition: A set is a collection of items
Examples
- Days of week: {Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday}
- Factors of 24: {1, 2, 3, 4, 6, 8, 12, 24}
- Prime numbers below 15: {2, 3, 5, 7, 11, 13}
Standard Number Sets
- โ: Natural numbers = {0, 1, 2, 3, ...}
- โค: Integers = {..., -3, -2, -1, 0, 1, 2, 3, ...}
- โ: Rational numbers = {p/q | p, q โ โค, q โ 0}
- โ: Real numbers = all rationals and irrationals
Set Comprehension (Set Builder Notation)
General Form: {x | x โ S, P(x)}
Read as: "the set of all x such that x belongs to S and x satisfies property P"
Examples
- Even natural numbers: {n | n โ โ, n mod 2 = 0}
- Integers between -6 and 6: {z | z โ โค, -6 โค z โค 6}
- First 500 natural numbers: X = {n | n โ โ, n < 500} = {0, 1, 2, ..., 499}
Intervals (for Real Numbers)
- Closed Interval [a, b]: Includes endpoints - [0, 1] = {r | r โ โ, 0 โค r โค 1}
- Open Interval (a, b): Excludes endpoints - (0, 1) = {r | r โ โ, 0 < r < 1}
- Half-Open Intervals: [a, b) or (a, b]
Visual Representation:
- Filled dot (โ) means included
- Open dot (โ) means excluded
3. Relations
Definition
Binary Relation: A relation R on sets A and B is a subset of A ร B
Cartesian Product A ร B: A ร B = {(a, b) | a โ A, b โ B}
Notation: If (a, b) โ R, we often write a R b
Example: Divisibility
R = {(a, b) | a, b โ โ, a ร b = 63}
Elements: (1, 63), (3, 21), (7, 9), (9, 7), (21, 3), (63, 1)
Properties of Relations
- Reflexivity: Every element relates to itself
- Symmetry: If a relates to b, then b relates to a
- Transitivity: If a relates to b and b relates to c, then a relates to c
4. Functions
Definition
Function: A rule that maps inputs to outputs
Notation:
- x โฆ xยฒ (maps x to x squared)
- f(x) = xยฒ (function named f)
- f: X โ Y (function from set X to set Y)
Requirements for Functions
- Defined on entire domain: Every input must have an output
- Single-valued: Each input maps to exactly ONE output
Key Terminology
- Domain: The set of all possible inputs
- Codomain: The set of all possible output values
- Range: The actual set of values the function achieves (range โ codomain)
Example: f(x) = xยฒ, domain = โ, codomain = โ
Range = โโฅ0 = {r | r โ โ, r โฅ 0} (only non-negative reals)
Range โ Codomain (codomain includes negative numbers too)
Types of Functions
Injective Functions (One-to-One)
Definition: Different inputs produce different outputs
If xโ โ xโ, then f(xโ) โ f(xโ)
โ Injective: f(x) = 3x + 5
โ Not Injective: f(x) = xยฒ (since f(5) = f(-5) = 25)
Surjective Functions (Onto)
Definition: Range = Codomain
Every element in codomain has a pre-image
โ Surjective: f(x) = -7x + 10 (with codomain โ)
โ Not Surjective: f(x) = xยฒ (with codomain โ, only produces non-negative values)
Bijective Functions (One-to-One Correspondence)
Definition: BOTH injective AND surjective
Establishes perfect pairing between domain and codomain
Important: Used to compare sizes of infinite sets
5. Prime Numbers
Definition
Prime Number: A number p is prime if:
- It has exactly two factors: 1 and p
- p โ 1 (1 is NOT prime - it only has one factor)
Examples: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, ...
First Prime: 2 (only even prime)
Fundamental Theorem of Arithmetic
Every integer greater than 1 can be decomposed into a unique product of prime factors
- 12 = 2 ร 2 ร 3 = 2ยฒ ร 3
- 126 = 2 ร 3 ร 3 ร 7 = 2 ร 3ยฒ ร 7
Infinity of Primes
Theorem: There are infinitely many prime numbers
- No largest prime exists
- Primes continue forever
- Gaps between primes can be arbitrarily large
6. Irrational Numbers
Historical Context
Ancient Greeks:
- Pythagoras and followers believed all numbers were rational
- Knew diagonal of unit square has length โ2
- Spent years trying to prove โ2 was rational
Hippasus (around 500 BCE):
- First to prove โ2 is irrational
- Shocked Pythagorean community
- Legend: Pythagoreans drowned him to suppress this discovery
Proof that โ2 is Irrational
Geometric Insight: In a unit square (sides of length 1), the diagonal has length โ2 by Pythagorean theorem
Proof by Contradiction
- Assume โ2 = p/q in lowest terms
- Square both sides: 2 = pยฒ/qยฒ
- Therefore: pยฒ = 2qยฒ
- This means pยฒ is even โ p is even
- Let p = 2k
- Then (2k)ยฒ = 2qยฒ โ 4kยฒ = 2qยฒ โ 2kยฒ = qยฒ
- This means qยฒ is even โ q is even
- But if both p and q are even, they weren't in lowest terms!
- Contradiction โ โ2 is irrational
Famous Irrational Numbers
- โn: irrational if n is not a perfect square
- ฯ (Pi): ฯ = 3.1415927... (ratio of circumference to diameter)
- e (Euler's number): e = 2.7182818... (base of natural logarithm)
Properties: Infinite, non-repeating decimal expansions
7. Degrees of Infinity
The Question
Are some infinities larger than others?
Studied by Georg Cantor (1870s)
Tool: Use bijections to compare infinite sets
Countable Sets
Definition: A set X is countable if there exists a bijection f: โ โ X
This means X can be "counted" or enumerated as {f(0), f(1), f(2), ...}
Surprising Results
โค is Countable!
Despite having negative numbers, โค has same cardinality as โ
Bijection: Interleave positive and negative integers
โ: 0, 1, 2, 3, 4, 5, 6, 7, 8, ...
โค: 0, 1, -1, 2, -2, 3, -3, 4, -4, ...
โ is Countable!
Despite being dense, โ has same cardinality as โ
Strategy: Diagonal enumeration of โ ร โ
โ is NOT Countable!
Cantor's Diagonalization: Proved no enumeration of โ exists
Construct a real number that differs from every number in any assumed enumeration
Cardinality Hierarchy
Important: Since โ is countable and โ is uncountable, irrational numbers must be uncountable
There are VASTLY more irrational numbers than rational numbers!
Continuum Hypothesis
Question: Is there a set whose cardinality is strictly between |โ| and |โ|?
Resolution by Paul Cohen (1960s): The Continuum Hypothesis is independent of set theory axioms
Cannot be proved OR disproved within standard set theory - both "yes" and "no" are consistent!
Key Formulas and Notation Summary
Number Sets
- โ = {0, 1, 2, 3, ...}
- โค = {..., -2, -1, 0, 1, 2, ...}
- โ = {p/q | p, q โ โค, q โ 0}
- โ = all rational and irrational
Set Operations
- A โ B: A is subset of B
- A ร B: Cartesian product
- |A|: cardinality of A
Functions
- Injective: xโ โ xโ โ f(xโ) โ f(xโ)
- Surjective: range = codomain
- Bijective: both injective & surjective
Cardinality
- |โ| = |โค| = |โ| (countable)
- |โ| > |โ| (uncountable)
- Irrationals are uncountable