cs23m511 Gur Prasad Srivastava Discrete Mathematics Assignment 4
cs23m511 Gur Prasad Srivastava Discrete Mathematics Assignment 4
Assignment 4
Gur Prasad Srivastava
cs23m511
Pages 110-111
Problems 9,19,33,41
Pages 132-134
Problems 5,9,21,33,37
Page 141
Problem 1
9. Use a proof by contradiction to prove that the sum of an irrational number and a
rational number is irrational.
Proposition to be proven is
s = r + i is an irrational number
To prove this by contradiction, we suppose that s is a rational number
Axiom - The difference between two rational numbers always is a rational number
To prove this also assume 2 rational numbers which are represented by (1) a/b and (2)
c/d with a,b,c,d being integers and b,d not equal to 0.
Then:
a c ad bc (ad - bc)
— - — = —- - —- = —————
b d bd bd bd
Since ad, bc, and bd are integers since integers are closed under the operation of
multiplication and ad-bc is an integer since integers are closed under the operation of
subtraction, then (ad-bc)/bd is a rational number since it is in the form of 1 integer
divided by another and the denominator is not equal to 0 since b and d were not equal to
0. Thus a/b - c/d is a rational number.
Here we conclude that rational numbers are closed in subtraction.
So, s - r is also a rational number
But if we subtract r from our original equation
s-r= r+i-r
Which mean
s=i
This indicates that s is a rational number so there is a contradiction to our assumption that i is
irrational so our assumption that s is an irrational number is incorrect hence we prove that s is
an irrational number.
19. Show that if n is an integer and n3 + 5 is odd, then n is even
using
a) a proof by contraposition.
b) a proof by contradiction.
Suppose that n3 + 5 is odd and n is also odd. We know that the multiplication of 2 odd numbers
is also an odd number. Now since n is odd, we know that n2 is also odd (n x n) and from here we
know that n3 is also odd (n2 x n). This makes it clear that n3 + 5 is also odd. Now, We also know
that the difference between two odd numbers is always even. Now we subtract n3 from n3 + 5
we get 5 which is not an even number and is a contradiction. So we conclude that n is not odd.
Hence we conclude that if n is an integer and n3 + 5 is odd, then n is even.
33. Show that these statements about the integer x are equivalent:
(a) 3x + 2 is even
(b) x + 5 is odd
(c) x2 is even.
We will prove all statements are true for both when x is even and when x is odd
Now we also need to prove that all statements are true when x is odd. For that we try to prove
using its contrapositive: Q → P = ~P → ~Q
assume that x is odd then x = 2k + 1
3(2k + 1) + 2 = 6k + 3 + 2 = 2(3k +2) + 1 which is odd
(2k + 1) + 5 = 2(k+3) which is even
(2k + 1)2 = 4k2 + 1 + 4k = 2(2k2 + 2k) + 1 which is odd.
So we can now claim that all these statements about the integer x are equivalent.
41. Prove that at least one of the real numbers a1, a2,...,an is greater than or equal to the
average of these numbers. What kind of proof did you use?
From (1)
A<A
which is a contradiction so our assumption is false and there is at least one of the real numbers
a1, a2, …, an is greater than or equal to the average of these numbers.
Pages 132-134
Problems 5,9,21,33,37
Q5 Prove that if x and y are real numbers, then max(x, y) + min(x, y) = x + y. [Hint: Use a
proof by cases, with the two cases corresponding to x ≥ y and x<y, respectively.]
To provide this we will have to consider all possible combinations of x and y i.e. x and y are +ves
and -ves and then in each x ≥ y and x < y and if in all cases we are able to prove that |x|+|y|≥|x +
y| then we can say that we have a proof.
Now we can repeat the entire 3rd case with x and y swapped but addition is commutative so x
and y can be used for proof interchangeably.
Hence we conclude the proof as we have shown equivalence in all possible cases.
Q21 Show that if n is an odd integer, then there is a unique integer k such that n is the
sum of k − 2 and k + 3.
Q33 Prove that there are no solutions in positive integers x and y to the equation x4 + y4 =
625.
As x and y are positive integers, and 625 can be written as 54; we check from 1 to 4 if the sum
of x4 and y4 could be 625. As 44 = 256 so even if x and y both are 4 then also their sum is 512
which is less than 625. So it is clear that x4 + y4 = 625 has no solution.
Q37 Prove that between every two rational numbers there is an irrational number.
Assume x and y are two arbitrary rational numbers such that y > x
We assert that z = x + (y – x) / √2 is an irrational number that lies between x and y.
x < x + (y – x) / √2 < x + (y – x)
i.e.
x < x + (y – x) / √2 < y
P Q Q ^ (P V ~Q)
T T T
T F F
F T F
F F F