230 HW 2
230 HW 2
Problem 2. Absolute Value. Given an integer a we define its absolute value as follows:
a
if a > 0
|a| := 0 if a = 0
−a if a < 0
Prove that for all integers a and b we have |ab| = |a||b|. [Hint: Your proof will break into at
least five separate cases. You may assume without proof the properties (−a)(−b) = ab and
(−a)b = a(−b) = −(ab); we’ll prove them later.]
Problem 3. Divisibility. Given integers m and n we will write “m|n” to mean that “there
exists an integer k such that n = mk” and when this is the case we will say that “m divides
n” or “n is divisible by m”. Now let a, b, and c be integers. Prove the following properties.
(a) If a|b and b|c then a|c.
(b) If a|b and a|c then a|(bx + cy) for all integers x and y.
(c) If a|b and b|a then a = ±b. [Hint: Use the fact that uv = 0 implies u = 0 or v = 0.]
(d) If a|b and b is nonzero then |a| ≤ |b|. [Hint: Use the result of Problem 2.]
√
Problem 4. The Square Root of 5. Prove that 5 is not a ratio of integers, in two steps.
(a) First prove the following lemma: Let n be an integer. If n2 is divisible by 5, then so
is n. [Hint: Use the contrapositive and note that there are four separate ways for an
integer to be not divisible by 5. Sorry it’s a bit tedious; we will find a better way to
do this later.] √
(b) Use the method of contradiction to prove that 5 is not a ratio of integers. Explicitly
quote your lemma in the√ proof. [Hint: Your proof should begin as follows: “Assume
for contradiction that 5 is a ratio of integers. In this case, . . . ”]