Q1: 20 points Q2: 15 points Q3: 20 points Q4: 20 points Q5: 25 points Total: 100 points
Question text is in black, solutions in blue.
The Pigeonhole Principle says that if a set of mn + 1 or more items is divided into n groups, at least one group has at least m + 1 items.
An odd number is an integer that can be written as 2k + 1, where k is another integer.
The Division Theorem says that if n is an integer and m a positive integer, there exist integers q and r such that n = qm + r and 0 ≤ r < m.
The mod operation, written "n mod m" in the textbook but (mostly) written "n % m" in Java, returns the number r from the Division Theorem above. It returns the remainder when n is divided by m. (When n is negative, the textbook's mod operation returns r such that 0 ≤ r < m, while Java's % operation returns a negative number.)
A perfect square is an integer that can be written as k2 for some integer k.
FALSE. The correct binary for 36 is 100100.
TRUE. If we divide the 11 numbers into 10 groups based on their last digit, the Pigeonhole Principle says that at least one group must have at least two elements.
TRUE. If x and y are arbitrary rational numbers, then they can be written as x = a/b and y = c/d, where a and c are integers and b and d are nonzero integers. Then x + y = (ad + bc)/bd, which is an integer divided by a nonzero integer and thus a rational number.
FALSE. The number 6 is divisible by 6 but not by 12. The converse of this statement is true.
TRUE. If n is odd, then n - 3 is even, its square is also even, and we get another even number when we add the even number 6 to it.
Following the hint, we write n as 4q + r and consider the four cases
for the four possible values of r.
Our P(n) is the statement "an = n3 + 2".
Our base case P(1) = "a1 = 13 + 2",
which is true because a1 is defined to be 3 and the
right-hand side evaluates to 3.
For the inductive step, we assume an-1 =
(n-1)2 + 2 and try to prove that an =
n3 + 2.
Using the rule for the sequence, an is equal to
an-1 + 3n2 - 3n + 1 which is equal to
(n-1)3 + 2 + 3n2 - 3n + 1. Expanding
the first term, this is n3 - 3n2 + 3n - 1 + 2
+ 3n2 - 3n + 1, which simplifies to n3 + 2.
We have completed the base case and the inductive step, and
thus proved that P(n) is true for all positive integers n.
T1, T2, and T3 are all 1 as given. T4 = 1 + 1 + 1 = 3, T5 = 1 + 1 + 3 = 5, T6 = 1 + 3 + 5 = 9, and T7 = 3 + 5 + 9 = 17.
Our statement P(n) is "Tn is odd".
For the three base cases, we just need to observe that T1,
T2, and T3 are each odd numbers since
they are each 1.
For the inductive case, we assume that P(i) is true for all
i with 1 ≤ i ≤ n - 1 and use that assumption to prove
P(n).
If n > 3, then n - 1, n - 2, and n - 3 are each positive
integers and we may assume that Tn-1,
Tn-2, and Tn-3 are each odd numbers. If
we write them as 2a + 1, 2b + 1, and 2c + 1 respectively, we
can see that Tn = 2(a + b + c) + 3 and is thus an
odd number itself.
Some people said that each of the three odd numbers was
equal to the same number 2k + 1, whereas all we may assume
about them is that each is odd.
One person had an interesting alternate approach, expanding
Tn-1 to get that Tn = (T2 +
T3 + T4) + T2 +
T3, which is 2(T2 + T3) +
T4 and thus a multiple of two plus a number assumed
to be odd, and hence an odd number. This is a correct proof
except for one problem. It asssumes that Tn-4 is
odd, which we only know if n - 4 is a positive integer, which
is only true for n ≥ 5. Since we have only assumed that n
≥ 4, to use this approach we have to deal with the case of
n = 4 separately, referring to part (a) and observing that 3
is odd.
Last modified 25 October 2015