Docsity

Lecture Notes on Number Theory: Primes and Induction, Study notes of Mathematics

Toggle sidebar
bg1
Day 2
July 7, 2009
Last time
1. Taking notes – Clarify that lecture notes are not complete.
2. Application of pigeonhole principle: Lossless data compression. Suppose we have 210 pieces of in-
formation, labeled Piece 1, Piece 2, Piece 3,..., Piece 210. One way to represent these 210 pieces of
information is by strings of binary digits, each 10 numbers long. For example, Piece 1 would correspond
to the string 0000000000, Piece 2 to 0000000001, Piece 33 to 0000100001, etc. Suppose however that
the object in which we are storing the codes can only handle 9 digit strings of 0s and 1s. Can we
sucessfully assign to each piece of information a 9-number string of 0s and 1s, in such a way that no
two pieces of information have the same string? The answer is no, by the pigeonhole principle.
3. Blackboard
4. “Checking all cases” (as a way to find solutions to problems): Cannibals and missionaries, or practice
LSAT questions. (We did the cannibals and missionaries homework problem from Homework 1, part
1.)
Section 2.3 – Primes (and induction)
Recall the method of proof by induction. It involves a sequence of statements P1, P2, P3, . . . that we want to
prove. We do so by proving the base case, P1, and by proving the induction step, namely, that Pnimplies
Pn+1.
Question 1. Why is proving something by induction valid?
Example 1. Prove that 1+2+22+ 23+ 24+. . . + 2n= 2n+1 −1
Proof. Let Pnbe the above statement. Then, for example, P3is the statement 1 + 2 + 22+ 23= 24−1,
which is easily verified. Note the sum on the LHS of Pncan be written as
20+ 21+ 22+. . . + 2n,
so the base case, P1, is the statement 20+ 21= 22−1, or 1 + 2 = 4 −1. Suppose now that Pkholds for
k=n. Then to prove Pkfor k=n+ 1, calculate
1+2+. . . + 2k= (1 + 2 + . . . + 2n)+2n+1
=2n+1 −1+ 2n+1 by Pn
= 2 ×2n+1 −1
= 2n+2 −1
= 2k+1 −1.
Hence
1+2+. . . + 2k= 2k+1 −1
for k=n+ 1, as required.
Aprime number is a positive integer greater than 1 whose only divisors are 1 and itself. Equivalently, a
prime is a positive integer with exactly two divisors. The first few primes are 2, 3, 5, 7, 11, 13, 17, 19, 23....
An integer mcan be nontrivially factored if it is the product of positive integers nand q, neither of which
is 1 or −1. Hence a positive integer other than 1 is either prime or a product of smaller positive integers.
Theorem 1 (Prime factorization theorem for the natural numbers).Every positive integer greater than 1
is a prime or can be expressed as a product of primes.
1
pf2

Partial preview of the text

Download Lecture Notes on Number Theory: Primes and Induction and more Study notes Mathematics in PDF only on Docsity!

Day 2

July 7, 2009

Last time

  1. Taking notes – Clarify that lecture notes are not complete.
  2. Application of pigeonhole principle: Lossless data compression. Suppose we have 2^10 pieces of in- formation, labeled Piece 1, Piece 2, Piece 3,..., Piece 2^10. One way to represent these 2^10 pieces of information is by strings of binary digits, each 10 numbers long. For example, Piece 1 would correspond to the string 0000000000, Piece 2 to 0000000001, Piece 33 to 0000100001, etc. Suppose however that the object in which we are storing the codes can only handle 9 digit strings of 0s and 1s. Can we sucessfully assign to each piece of information a 9-number string of 0s and 1s, in such a way that no two pieces of information have the same string? The answer is no, by the pigeonhole principle.
  3. Blackboard
  4. “Checking all cases” (as a way to find solutions to problems): Cannibals and missionaries, or practice LSAT questions. (We did the cannibals and missionaries homework problem from Homework 1, part 1.)

Section 2.3 – Primes (and induction)

Recall the method of proof by induction. It involves a sequence of statements P 1 , P 2 , P 3 ,... that we want to prove. We do so by proving the base case, P 1 , and by proving the induction step, namely, that Pn implies Pn+1.

Question 1. Why is proving something by induction valid?

Example 1. Prove that 1 + 2 + 2^2 + 2^3 + 2^4 +... + 2n^ = 2n+1^ − 1

Proof. Let Pn be the above statement. Then, for example, P 3 is the statement 1 + 2 + 2^2 + 2^3 = 2^4 − 1, which is easily verified. Note the sum on the LHS of Pn can be written as

20 + 2^1 + 2^2 +... + 2n,

so the base case, P 1 , is the statement 2^0 + 2^1 = 2^2 − 1, or 1 + 2 = 4 − 1. Suppose now that Pk holds for k = n. Then to prove Pk for k = n + 1, calculate

1 + 2 +... + 2k^ = (1 + 2 +... + 2n) + 2n+

2 n+1^ − 1

  • 2n+1^ by Pn = 2 × 2 n+1^ − 1 = 2 n+2^ − 1 = 2 k+1^ − 1.

Hence 1 + 2 +... + 2k^ = 2k+1^ − 1

for k = n + 1, as required.

A prime number is a positive integer greater than 1 whose only divisors are 1 and itself. Equivalently, a prime is a positive integer with exactly two divisors. The first few primes are 2, 3, 5, 7, 11, 13, 17, 19, 23.... An integer m can be nontrivially factored if it is the product of positive integers n and q, neither of which is 1 or −1. Hence a positive integer other than 1 is either prime or a product of smaller positive integers.

Theorem 1 (Prime factorization theorem for the natural numbers). Every positive integer greater than 1 is a prime or can be expressed as a product of primes.

For example, 8 can be written as 2 × 2 × 2 and 12 can be written as 2 × 2 × 3.

Proof. We proceed by induction. Let Pm be the statement “each integer greater than 1 and at most m is prime or a product of primes.” The first step is to prove the base case, which here is the statement P 2 , or “each integer greater than 1 and at most 2 is prime or a product of primes.” But this statement is equivalent to “2 is a prime or a product of primes,” which is true because 2 is prime! Hence we have proven the base case. Now assume for a moment that Pm is true. That is, assume that each integer greater than 1 and at most m is a prime or a product of primes. We want to show that Pm+1 is true. To prove Pm+1, let let k be an integer greater than 1 and at most m + 1. (Consider all cases.) Either k = m + 1 or k ≤ m. In the second case, the statement Pm implies that k is prime or a product of primes. Hence we just need to show that m + 1 is prime or a product of two primes. (Consider all cases again.) Either m + 1 is prime or not prime. If it is prime, then certainly it “is a prime or a product of primes. If m + 1 is not prime, then by definition of primes, m + 1 is the product of n and q, where n and q are positive integers less than m + 1. But integers less than m + 1 are are most m. So the statement Pm implies that n and q are primes or products of primes. In either case, when we multiply n and q to get m, we get a product of primes. This proves the induction step.

Homework 1, part 2

  1. Prove the Gauss formula 1 + 2 + 3 +... + n = n(n 2 +1).
  2. Prove that if p is a prime number not equal to 2, then p + 1 is not prime.
  3. If p is prime, can p + 2 be prime. Such pairs, p and p + 2, are called “twin primes”. Give at least 5 examples of twin primes.
  4. We showed that there are infinitely many prime numbers. Construct a list of infinitely many non-prime numbers.
  5. Problem 14 in Section 2.3 of HoM.
  6. Problem 15 in Section 2.3 of HoM.
  7. (Extra credit) Let F 1 = 1 and F 2 = 1. These are called the 1st and 2nd Fibonacci numbers, respectively. The n-th Fibonacci number Fn for n ≥ 3 is defined to be the sum of the (n − 1)-th and (n − 2)-th Fibonacci numbers. Hence F 3 = 1 + 1 = 2, F 4 = 2 + 1 = 3, etc. The first few Fibonacci numbers are

1 , 1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 , 55 , 89 , 144 ,....

Formally, for n ≥ 3, we have Fn = Fn− 1 + Fn− 2. Prove that the sum of the first n Fibonacci numbers is the (n + 2)-th Fibonacci number minus 1, i.e.,

F 1 + F 2 +... + Fn = Fn+2 − 1.

  1. (Extra credit) Let Fn denote the n-th Fibonacci number, as in the previous problem. Show that

F 1 + F 3 + F 5 +... + F 2 n− 1 = F 2 n.

For example, F 1 + F 3 = F 4 and F 1 + F 3 + F 5 = F 6.