Assignment 3 Question
Assignment 3 Question
Islamabad Campus
Department of Computer Science
Spring2025 Page 1
Question # 1 5 marks
i. Using the definitions of even integer and odd integer, give a direct proof that this statement is true for
all integers n: If n is odd, then 5n + 3 is even.
ii. Using the definitions of even integer and odd integer, give a proof by contraposition that this
statement is true for all integers n: If 3n − 5 is even, then n is odd.
iii. Prove that following given statement is true for all integers n, using the definitions of even integer and
odd integer: If 7n − 5 is odd, then n is even.
iv. Suppose a, b, and c are odd integers. Prove that the roots of ax2 + bx + c = 0 are not rational.
v. Give a proof by contradiction of: “If n is an even integer, then 3n + 7 is odd.”
vi. Prove that this statement is true for all integers n: n is odd if and only if 5n + 3 is even.
vii. Show that the statement “Every integer is less than its cube” is false by finding a counterexample.
viii. Prove that there is only one pair of positive integers that is a solution to 3x2 + 2y2 = 30.
ix. Prove that the square of every even integer ends in 0, 4, or 6.
x. Prove that the following is true for all real numbers x and y: max(x, y) = 1/2 (x + y + |x − y|).
xi. Prove that the square of every odd integer ends in 1, 5, or 9.
xii. Prove that there are numbers x and y whose sum is 5 and whose product is 2. (Note that we are
only required to show that x and y exist; we are not required to find specific values for x and y.)
xiii. Show that if x is a nonzero rational number, then there is a unique rational number y such that xy = 2.
xiv. Prove that the square of every odd integer has the form 8k + 1, where k is an integer.
xv. Suppose a and b are integers such that 2a = b2 + 3. Prove that a is the sum of three squares.
xvi. Prove or disprove the following conjecture: For all real numbers x, x2 > x.
xvii. Prove or disprove the statement “The square of every integer ends in 0, 1, 4, 5, or 9.”
xviii. Prove or disprove the statement “There is a number x such that x > x + 2.”
xix. Suppose that a, b, c are real numbers and each is less than the sum of the other two. Prove that all three
numbers are positive.
xx. Suppose N is the sum of squares of two integers. Prove that 2N is also the sum of squares of
two integers.
xxi. Suppose n > 1 is not prime. (A prime number is a positive integer greater than 1 that has no
positive integer divisors other than 1 and itself.) Are there positive integers x, y, and z such that
n = xy+yz+zx+1?
Question # 2 5 marks
i. Use mathematical induction to prove that
n1
i1
i2i n 2n2 2, for all integers n 0
ii. Use mathematical induction to prove that
1 1 1 n 1 for all integers n 2
1 1 1
2 2 2
2 3 n 2n
iii. Prove by mathematical induction
n
i1
i(i!) (n 1)!1
for all integers n1
iv. Use mathematical induction to prove the generalization of the following De Morgan’s Law:
n
Aj n
Aj
j1 j1
Spring2025 Page 2
v. Use mathematical induction to prove that n3 - n is divisible by 3 whenever n is a positive integer.
vi. Use mathematical induction to prove that for all integers n1, 22n-1 is divisible by 3.
vii. Use mathematical induction to show that the product of any two consecutive positive integers
is divisible by 2.
ix. Prove by mathematical induction. For any integer n 1, xn - yn is divisible by x - y, where x and y
are any two integers with x y.
Spring2025 Page 3