Content:
[∀ n ∈ N, p(0), ..., p(n - 1) => p(n)] => ∀ n ∈ N, p(n)
Example:
Claim: Every natural number greater than 1 has a prime factorization.
Proof:
Assume that ∀ n ∈ N - {0, 1} and that for all natural numbers 1 < j < n, p(j) is true. -> IH
Then n is either prime or not prime.
Case1: n is prime Then n = n is its own prim factorization.
Case2: n is not prime Then n has ate least 3 factors, 1, n, and x ≠ 1, x ≠ n. So 1 < x < n, som x is a factor different from 1 and n. Then also, n has a factor y = n/x, y ≠ n and y ≠ 1, since otherwise xy ≠ n.
Now by IH x and y have prime factorization, we conclude n has a prime factorization, that is p(n).
Since n was arbitrary, this shows that ∀ n ∈ N - {0, 1}, [p(2), p(3), ..., p(n - 1)] => p(n)
Conclude ∀ n ∈ N - {0, 1}, n has a prime factorization.
Saturday, 27 October 2012
Mathematical Induction
Content:
[ p(0) ∧ (∀ n ∈ N, p(n) => p(n + 1)] => ∀ n ∈ N, p(n)
Example:
Claim: Every set with n elements has exactly 2^n subsets.
Proof:
Base Case: If n = 0, the oly set of size 0 is {} with set of subset | {{}} | = 1 = 2^0, so p(0) is true.
Induction Step:
Assume n ∈ N, and that p(n) is ture. -> IH
If S is a genetic set with | S | = n + 1. Now there is some x ∈ S, since n + 1 > 0, and we partition the subsets of S in two sets: S- is the set of subsets of S that do contain x. Since f: S- -> S+, f(S) = S U { x } is a bijection. we know | S- | = | S+ |, by IH, | S- | = 2^n, because S- is the set of subsets of S - { x }, and | S - { x } | = n + 1 - 1 = n. So S has | S- | + | S+ | = 2^n + 2^n = 2^(n + 1) subsets. Since S was arbitrary, this meas every set of size n + 1 has 2^(n + 1) subsets, i.e. p(n + 1).
Since, for genetic n, p(n) => p (n + 1), this shows ∀ n ∈ N, p(n) => p(n + 1)
Conclude, ∀ n ∈ N, p(n), by mathematical induction.
Subscribe to:
Posts (Atom)