Question

In: Computer Science

Prove that the following is true for all positive integers n: n is odd if and...

Prove that the following is true for all positive integers n: n is odd if and only if n2 is odd.

Solutions

Expert Solution

The contrapositive of an If-Then Statement
If p, then q is If ~q, then ~p

The conditional statement is logically equivalent to its contrapositive.

So,

p→q ≡ ~q→ ~p which means if the conditional stamement is true, its contrapositive is also true.

The even number can be expressed as the product of 2 and an integer, that is, 2k for some integer k.

Example,

10= 2(5)

12= 2(6)

The contrapositive of the theorem that we want to prove. If the contrapositive is proven true, the original statement must be also true.

If n^2 is odd, then n is odd    is If n is even, then n^2 is even.

Assume that n is even that means we can express it as n = 2k.

So,

n2=(2k)2=4k2

Now factor out 2 from RHS,

n2=2(2k2) (If k is an integer 2k2is also an integer)

So, we can write it as, where t is an integer and 2t is clearly the algebraic form of an even number.

n2=2t

The contrapositive to be true makes the original conditional statement true. So, we have that if n2 is odd, then n is odd.


Related Solutions

prove 2 is a factor of (n+1)(n+2) for all positive integers
prove 2 is a factor of (n+1)(n+2) for all positive integers
Use double induction to prove that (m+ 1)^n> mn for all positive integers m; n
Use double induction to prove that (m+ 1)^n> mn for all positive integers m; n
Prove that for all integers n ≥ 2, the number p(n) − p(n − 1) is...
Prove that for all integers n ≥ 2, the number p(n) − p(n − 1) is equal to the number of partitions of n in which the two largest parts are equal.
Prove the following statements! 1. There is a bijection from the positive odd numbers to the...
Prove the following statements! 1. There is a bijection from the positive odd numbers to the integers divisible by 3. 2. There is an injection f : Q→N. 3. If f : N→R is a function, then it is not surjective.
How could I mathematically prove these statements? 1. The sum of the first n positive odd...
How could I mathematically prove these statements? 1. The sum of the first n positive odd numbers is square. 2. Two positive numbers have the same set of common divisors as do the smallest of them and their absolute difference. 3. For every prime p > 3, 12|(p 2 − 1).
Use induction to prove that 8^n - 3^n is divisible by 5 for all integers n>=1.
Use induction to prove that 8^n - 3^n is divisible by 5 for all integers n>=1.
Prove these scenarios by mathematical induction: (1) Prove n2 < 2n for all integers n>4 (2)...
Prove these scenarios by mathematical induction: (1) Prove n2 < 2n for all integers n>4 (2) Prove that a finite set with n elements has 2n subsets (3) Prove that every amount of postage of 12 cents or more can be formed using just 4-cent and 5-cent stamps
(a) Can the sum of 12345 odd pos- itive integers be 12345678 ? Prove or disprove....
(a) Can the sum of 12345 odd pos- itive integers be 12345678 ? Prove or disprove. (b) Prove that for every possible re-arrangement (b1, b2, . . . , b999) of the numbers (1, 2, . . . , 999), the product (b1 − 1)(b2 − 2)(b3 − 3) · . . . · (b999 − 999) is even.
Prove the following theorem. If n is a positive integer such that n ≡ 2 (mod...
Prove the following theorem. If n is a positive integer such that n ≡ 2 (mod 4) or n ≡ 3 (mod 4), then n is not a perfect square.
1. Give a direct proof that if n is an odd integers, then n3 is also...
1. Give a direct proof that if n is an odd integers, then n3 is also an odd integer. 2. Give a proof by contradiction that the square of any positive single digit decimal integer cannot have more than two decimal digits.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT