Definitions pt 2 Flashcards
MI1 formal logic
P(1) ∧ ∀k [P(k) => P(k+1)] => P(n)
What is the structure for mathematical induction?
P(n) is a property. 1. Show P(1) is true 2. Assume P(k) is true for some k∈ℤ+ 3. Show P(k+1) is true Conclusion: P(n) is true for ∀n∈ℤ+
Define: least element
A set S⊂ℝ has a least element if
∃ x∈S ∋ x ≤ y for ∀y∈S
What is the formal logic for a direct proof?
P => Q
-or-
P₁ ∧ P₂ ∧ … ∧ Pk => Q
What is the formal logic for contraposition?
~Q => ~P
if ~Q=true, show ~P=true
What is the formal logic for a contradiction?
P ∧ ~Q => something false
Define: well-ordered
A set S is well-ordered if
∀ Y⊆S, Y has a least element, Y≠∅.
(It’s well-ordered if ∀ subsets have a least element, but don’t worry about the empty set)
Is ℤ+ well-ordered?
Yes. Any subset will have a least element.
Is ℤ well-ordered?
No. It extends to -∞ and therefore does not have a least element.
Is ℕ well-ordered?
Yes. Any subset will have a least element.
State the FTA
The fundamental theorem of arithmetic:
All ℤ+ > 1 are either prime or a product of primes with unique factorization, up to the order of the factors.
State Euclid’s lemma
Let p be prime and p|ab.
Then p|a or p|b or both.
State the Binomial Thm
Let a,b∈ℝ and n∈ℤ+. Then,
(a+b)^n =
∑(k=0, n) [n choose k] a^(n-k) ∗ b^k
Define: [n choose k]
[n choose k] =
n!
(n-k)! k!
[n choose k] +
[n choose k-1] = ?
n+1 / k
State Fermat’s Little Thm
Let p be prime. Then for ∀a∈ℤ+
a^p ≡ a mod p
and, in particular, if gcd(a,p) = 1, then
a^(p-1) ≡ 1 mod p
What does Fermat’s Little Thm imply about 2^p?
p | 2^p - 2
Define the phi function.
Φ(n) = | { x∈ℤ+ | gcd(x,n) = 1, 1 ≤ x ≤ n } |
If p is prime, Φ(p) =
Φ(p) = p-1
If p ≠ q are primes, Φ(pq) =
Φ(pq) = Φ(p) ∗ Φ(q)
Let p be prime, then Φ(p^n) =
Φ(p^n) = p^(n-1) ∗ Φ(p)
State Euler’s Thm
Let gcd(a,n) = 1. Then, a^Φ(n) ≡ 1 mod n
Rearrange p | 2^p - 2 to be Fermat’s Little Thm
p | 2^p - 2
=> 2^p ≡ 2 mod p
=> 2^(p-1) ≡ 1 mod p
State inclusion/exclusion for two sets A, B
|A∪B| = |A| + |B| - |A∩B|