Assignment 4
Assignment 4
Question A1:
In lecture, we will discuss the polynomial function p(n) = 2n3 +3n2 +n, as an example of an object that can
be studied via case analysis. It may be somewhat surprising that whenever n is an integer, p(n) is a multiple
of 6. For example p(4) = 2 × 43 + 3 × 42 + 4 = 180 and 180 = 6 × 30, while p(6) = 2 × 63 + 3 × 62 + 6 = 546
and 546 = 6 × 91.
(a) Compute p(5) and show directly that it is a multiple of 6, by finding p(5) ÷ 6.
(b) In fact, this is a consequence of the fact that the polynomial itself can be factored. You could check
(but are not required to do so) that 2n3 + 3n2 + n = (2n + 1)(n + 1)(n). For ever integer n, one of
the three factors is a multiple of 3 and one of the factors is a multiple of 2.
(i) When n = 5, compute the three factors.
(ii) Which factor is a multiple of 3.
(iii) Which factor is a multiple of 2.
Question A2:
Table 6 of Section 1.3.2 and Table 1 of Section 2.2.2 are very similar. Most of the named laws that appear
in one also appear with the same name in the other.
(a) Which law or laws appear only in Table 6?
(b) Which law or laws appear only in Table 1?
(c) How are your two lists related?
c 2022 Michael La Croix All Rights Reserved Page 1 of 2
Part (b): Practice: Due Monday, October 17, 2022, at 10 am
This assignment will expand on some of the properties of even and odd integers. It is not meant to give
you a profound understanding of number theory, but instead should give a concrete setting where we can
discuss some of the ideas of logic and proof techniques.
Recall that an integer n is even if n = 2k for some integer k, and odd if n = 2k + 1 for some integer k.
You may assume that every integer is either even or odd, so that when n is an integer, the proposition
¬(n is even) is logically equivalent to (n is odd).
Question B1:
Let q be the statement At least one of x, y, and z is odd.
(a) Describe a suitable universe of discourse and suitable predicate O so that q is equivalent to ∃n(O(n)).
(b) Apply one of De Morgan’s Laws for Quantifiers (Table 2 of Section 1.4.9) to the existential form of
q (from (a)) to find a quantified expression that is logically equivalent to ¬q.
(c) Translate your new quantified expression (from (b)) into English.
(d) Could you have found this expression for ¬q directly, without translating into logical notation first?
Did using logical notation help you to check your work, or reveal something new in this case?
Question B2:
Prove that if x, y, and z are integers, and x + y + z is odd, then at least one of x, y, and z is odd.
Hint: This expression can be written in the form p → q. In the contrapositive form, you would need to
prove that ¬q → ¬p, and your description of ¬q from B1(c) might help.
Question B3:
This question provides a simple example where case analysis is useful. Our goal will be to conclude that
the polynomial function 15n2 + 11n + 2 is even whenever n is an integer.
(a) Compute 15 × 72 + 11 × 7 + 2 and 15 × 42 + 11 × 4 + 2 and check that both are even numbers.
Note: These examples do not prove our claim, but working with small examples can help us to check
that a claim is reasonable, before we proceed with an abstract investigation.
(b) Use multiplication to check that 15n2 + 11n + 2 = (3n + 1)(5n + 2).
(c) We will now show that if n is even, then 15n2 + 11n + 2 is even.
(e) Write a proof by cases that combines (c)(iii) and (d) to conclude that if n is an integer, then
15n2 + 11n + 2.
c 2022 Michael La Croix All Rights Reserved Page 2 of 2