Assignment
Assignment
FACULTY OF ENGINEERING
International Credit Hour System
Use the definitions of even, odd, prime, and composite to justify each of your answers.
1. Assume that 𝑘 is a particular integer.
a. Is −17 an odd integer? (Y/N)
Because:
b. Is 0 an even integer? (Y/N)
Because:
c. Is 2𝑘 − 1 odd? (Y/N)
Because:
Definition: An integer n is called a perfect square if, and only if, n = k2 for some
integer k.
3. There is a perfect square that can be written as a sum of two other perfect squares.
Proof:
4. The negative of any even integer is even.
Proof:
5. The difference of any even integer minus any odd integer is odd.
Proof:
𝑛−1
8. For all integers 𝑛, if 𝑛 is odd then 2
is odd.
Proof:
2 4
9. + 5 . Ans:
9
Determine which of the following statements are true and which are false. Prove each true
statement directly from the definitions, and give a counterexample for each false
statement.
13. The difference of any two rational numbers is a rational number.
Proof:
14. If r is any rational number, then 3r2 − 2r + 4 is rational.
Proof:
Formal Statement:
b. Determine whether the statement is true or false and justify your answer.
(True/False) Because:
19. Show that the following statement is false: For all integers a and b, if 3 | (a + b) then
3 | (a−b).
Proof:
Determine whether the following statements are true or false. Prove the statement
directly from the definitions if it is true, and give a counterexample if it is false.
22. Prove that if n is any nonnegative integer whose decimal representation ends in 0,
then 5 | n. (Hint: If the decimal representation of a nonnegative integer n ends in
d0, then n = 10m + d0 for some integer m.)
Proof:
Find integers q and r such that n = dq + r and 𝟎 ≤ 𝒓 < 𝒅.
23. n = 70, d =9
Ans.:
24. n = 3, d = 11
Ans.:
25. n = −27, d = 8
Ans.:
Evaluate
28. Suppose d is a positive integer and n is any integer. If d | n, what is the remainder
obtained when the quotient remainder theorem is applied to n with divisor d?
Ans.:
Compute ⌈𝒙⌉ 𝒂𝒏𝒅 ⌊𝒙⌋ for each of the values of x in the following
31. 37.999. Ans:
32. −14.00001. Ans:
33. Use the floor notation to express 259 div 11 and 259 mod 11.
Ans.:
35. Seven pounds of raw material are needed to manufacture each unit of a certain
product. Express the number of units that can be produced from n pounds of raw
material using either the floor or the ceiling notation. Which notation is more
appropriate?
Solution: