Question

In: Computer Science

Proof of If and Only if (IFF) and Contrapositive Let x,y be integers. Prove that the...

Proof of If and Only if (IFF) and Contrapositive

Let x,y be integers. Prove that the product xy is odd if and only if x and y are both odd integers.

Proof by Contradiction

Use proof by contradiction to show that the difference of any irrational number and any rational number is irrational. In other words, prove that if a is irrational and b is a rational numbers, then a−b is irrational.

Direct Proof

Using a direct proof, prove that:

The sum of two consecutive perfect squares is odd.

***Consider the set of integer numbers.***

***A perfect square is a number that can be expressed as the product of two equal integers.***

Solutions

Expert Solution

1)Proof of If and Only if (IFF) and Contrapositive

Let x,y be integers. Prove that the product xy is odd if and only if x and y are both odd integers.

Proof:

Use Proof by Contrapositive ,

Suppose x and y are both not odd integers.That is,they are even integers

If x=2a and y=2b for some integers a and b

Thus x.y=(2a).(2b)=4ab=2(2ab) for some integer 2ab

Therefore xy is even

That is xy is not odd.

By contrapositive,We proved that  product xy is odd if and only if x and y are both odd integers

by proving product xy is even if and only if x and y are both even integers

2)Proof by Contradiction

Use proof by contradiction to show that the difference of any irrational number and any rational number is irrational. In other words, prove that if a is irrational and b is a rational numbers, then a−b is irrational.

Proof:Use Proof by contradiction.

Suppose the statement is false.

That is, suppose there is a rational number b and an irrational number a such that ,a-b, is rational.

By the definition of rational numbers, we have b = x/y and a-b = p/q for some integers x,y,p,q, where y≠0 and q≠0. That is, a-x/y= p/q.

Then, by basic algebra a=(py+qx)/qy . Because the set of all integers are closed under addition, subtraction, and multiplication, and x,y,p,q are integers, py+qx and qy are also integers. Furthermore, because y≠0 and q≠0, qy≠0. Therefore, by the definition of rational numbers, a is a rational number. On the other hand, in the supposition at the beginning, we supposed a is an irrational number.

Thus, a is a irrational number and b is an rational number, which is a contradiction. So, the supposition cannot be true.

That is, the original statement is true.

3)  Direct Proof

Using a direct proof, prove that:

The sum of two consecutive perfect squares is odd.

Proof:Since n and m are consecutive squares ,then n=a2 and m=b2 for some integers a,b by a definition of square

Then n+m=a2+b2

=2k+1,where k∈Z+

For Example, 25=52 and 36=62

25+36=61=2(30)+1

Therefore, The given statement "The sum of two consecutive perfect squares is odd" is true


Related Solutions

Let x, y be integers, and n be a natural number. Prove that x ^(2n) −...
Let x, y be integers, and n be a natural number. Prove that x ^(2n) − y ^(2n) is divisible by x + y
Let x and y be integers such that 17 | (3x +5y). Prove that 17 |...
Let x and y be integers such that 17 | (3x +5y). Prove that 17 | (8x + 19y).
Use proof by contrapositive to prove the statement: For all real numbers, if m + n...
Use proof by contrapositive to prove the statement: For all real numbers, if m + n is irrational, then m or n is irrational.
. Let x, y ∈ R \ {0}. Prove that if x < x^(−1) < y...
. Let x, y ∈ R \ {0}. Prove that if x < x^(−1) < y < y^(−1) then x < −1.
Let X and Y be T2-space. Prove that X*Y is also T2
Let X and Y be T2-space. Prove that X*Y is also T2
Let x, y ∈ Z. Prove that x ≡ y + 1 (mod 2) if and...
Let x, y ∈ Z. Prove that x ≡ y + 1 (mod 2) if and only if x ≡ y + 1 (mod 4) or x ≡ y + 3 (mod 4)
Let x, y, z be a primitive Pythagorean triple with y even. Prove that x+y ≡...
Let x, y, z be a primitive Pythagorean triple with y even. Prove that x+y ≡ x−y ≡ ±1 mod 8.
Let F be a field. (a) Prove that the polynomials a(x, y) = x^2 − y^2,...
Let F be a field. (a) Prove that the polynomials a(x, y) = x^2 − y^2, b(x, y) = 2xy and c(x, y) = x^2 + y^2 in F[x, y] form a Pythagorean triple. That is, a^2 + b^2 = c^2. Use this fact to explain how to generate right triangles with integer side lengths. (b) Prove that the polynomials a(x,y) = x^2 − y^2, b(x,y) = 2xy − y^2 and c(x,y) = x^2 − xy + y2 in F[x,y]...
Let x,y ∈ R satisfy x < y. Prove that there exists a q ∈ Q...
Let x,y ∈ R satisfy x < y. Prove that there exists a q ∈ Q such that x < q < y. Strategy for solving the problem Show that there exists an n ∈ N+ such that 0 < 1/n < y - x. Letting A = {k : Z | k < ny}, where Z denotes the set of all integers, show that A is a non-empty subset of R with an upper bound in R. (Hint: Use...
1. Let X and Y be non-linear spaces and T : X -->Y. Prove that if   ...
1. Let X and Y be non-linear spaces and T : X -->Y. Prove that if    T is One-to-one then T-1 exist on R(T) and T-1 : R(T) à X is also a linear map. 2. Let X, Y and Z be linear spaces over the scalar field F, and let T1 ϵ B (X, Y) and T2 ϵ B (Y, Z). let T1T2(x) = T2(T1x) ∀ x ϵ X. (i) Prove that T1T2 ϵ B (X,Y) is also a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT