Problem 1: Find r such that 313 &equiv r (mod 11) and 0 &le r < 11.
313 &equiv 33 * 33 * 3 3 * 3 3 * 3 &equiv 27 * 27 * 27 * 27 * 3 &equiv 5 * 5 * 5 * 5 * 3 &equiv 25 * 25 * 3 &equiv 3 * 3 * 3 &equiv 27 &equiv 5 (mod 11)
Problem 2: Prove or disprove: for any integers a, b, and c, if b | a and c | a then bc | a.
Counterexample: a = b = c = 5. 5 | 5 and 5 | 5 but it is not the case that 25 | 5.
Problem 3: Prove or disprove: the square root of any irrational number is irrational.
The statement is false. A counterexample is -sqrt(2), which is irrational and does not have a real square root. Since all irrational numbers are real it also does not have an irrational square root.
We can prove that the square root of any positive irrational number is irrational.
Proof: Suppose there is a positive irrational number x with a rational square root y. Since y is the square root of x we have x = y2 = y * y. But then x is the product of two rational numbers and so x is rational too, which contradicts the assumption that x is irrational. Therefore there is no irrational number with a rational square root. In other words, every positive irrational number has an irrational square root.
Problem 4: Prove that for all integers n, if n3 is a multiple of 7 then n is a multiple of 7. (Hint: prove the contrapositive using the quotient-remainder theorem.)
The contrapositive is "if n is not a multiple of 7 then n3 is not a multiple of 7.
Proof: Suppose n is not a multiple of 7. Then it is not that case that n &equiv 0 (mod 7). There are six cases remaining from the quotient-remainder theorem:
Problem 5: Prove that the cube root of 7 is irrational.
Proof: Suppose that the cube root of 7 is rational. Then there are integers p and q such that p3/q3 = 7. Furthermore, we can find such a p and q with no common factors. We then have p3 = 7q3, so p3 is a multiple of 7 and by problem 4, p is a multiple of 7. Then there is an integer k such that p = 7k. By substitution we now have 7q3 = (7k)3 and q3 = 7 * 7 * k3. So q3 is a multiple of 7 and by problem 4 q is a multiple of 7. Now p and q have a common factor (7), which contradicts that p and q have no common factors. Therefore, the cube root of 7 is irrational.
Problem 6: Compute gcd(3003,1560) using the Euclidean Algorithm.
gcd(3003, 1560) = gcd(1560, 1443) since 3003 = 1 · 1560 + 1443
gcd(1560, 1443) = gcd(1443, 117) since 1560 = 1 · 1443 + 117
gcd(1443, 117) = gcd(117, 39) since 1443 = 12 · 117 + 39
gcd(117, 39) = gcd(39, 0) since 39 = 3 · 39 + 0
gcd(39, 0) = 39 bceause gcd(a, 0) for any positive integer a.
Therefore, gcd(3003, 1560) = 39.
Problem 7: Write the following using summation or product notation.
| 4 | |
| &Sigma | (3i + 1) |
| i=0 |
| n | |
| &Pi | (n + i) |
| i=1 |
| 8 | |
| &Sigma | (i2 + 1)(-1)i+1 |
| i=3 |
Problem 8: Prove that any amount more than 1 cent can be made with 3 cent stamps and at most two 2 cent stamps.
Proof: Base cases: 2 cents can be made with one 2-cent stamp, 3 cents with one 3-cent stamp, and 4 cents with two 2-cent stamps.
Induction step: Suppose k > 4 and any amount from 2 cents to k-1 cents can be made with 3-cent stamps and at most two 2-cent stamps. [We now show that k cents can be made with 3-cent stamps and at most two 2-cent stamps.] Since k > 4, k-3 is between 2 and k-1 and so by the inductive hypothesis, k-3 cents can be made with 3-cent stamps and at most two 2-cent stamps (that is, there are integers a and b such that k-3 = 3a + 2b and a >= 0 and 0 <= b <= 2). Adding a 3-cent stamp gives k cents total (so that k = 3(a + 1) + 2b where a + 1 >= 0 and 0 <= b <= 2).
Problem 9: Define a sequence by a1 = 2, a2 = 6, and an = an-1 + (an-2)2 for n &ge 3. Prove that, for all positive integers n, an &equiv 2 (mod 4).
Proof: Base cases: a1 = 2 and 2 &equiv 2 (mod 4), so a1 &equiv 2 (mod 4). a2 = 6 and 6 &equiv 2 (mod 4), so a2 &equiv 2 (mod 4)
Induction step: Assume k > 2 and ai &equiv 2 (mod 4) for any i such that 1 <= i < k. Since k > 2, 1 <= k-1, k-2 < k and so by the inductive hypothesis, an-1 &equiv 2 (mod 4) and an-2 &equiv 2 (mod 4). Therefore, an = an-1 + (an-2)2 &equiv 2 + 22 &equiv 6 &equiv 2(mod 4).
Problem 10: Let P(n) be some predicate defined for integers n. Suppose that you know that P(1) is true, and that for all k &ge 1, if P(k) is true then both P(2k) and P(2k+1) are true. For what integers n may you conclude that P(n) is true?
We have P(1) -> P(2) v P(3), so P(1) gets us P(2) and P(3). We also have P(2) -> P(4) v P(5), so we have P(4) and P(5) as well. P(3) together with P(3) -> P(6) v P(7) yields P(6) and P(7)...
We can eventually get P(n) for any positive integer n.