Question

In: Computer Science

I will really appreciate it if you could answer all of them all for me. Thank...

I will really appreciate it if you could answer all of them all for me. Thank you :)

1.

use a direct proof to SHOW the following:

The square of an even natural number is even.

The sum of an even and odd number is odd.

The sum of two even number is even.

The sum of two odd number is even.

2.

Examine below compound proposition:

[-p ^ ( p v q ) ] -> q.

(1) Complete truth table

(2) Explain if this IS or IS NOT a tautology, and why.

3.

Determine the satisfiability of the following compound proposition:

(p v -q) ^ (q v -r) ^ (r v -p) ^ (p v q v r) ^ (-p v -q v -r ).

4. Select ALL that is true about the following logical operation between 'p' and 'q.'

p ∧ q.

if, and only if, both p and q are T, the end result will be T (T/F)

only if both p and q are 1 will result in a 1 (T/F)

If only 1 of the variables is 1, the result CAN still be a 1 (T/F)

in 3 of the 4 outcomes, the outcome will be F. (T/F)

Solutions

Expert Solution

1 -
The square of an even natural number is even.
Let n be a even natural number , then n can be written as n = 2(k) for positive integer k.
Therefore n^2 can be written as n^2 = (2k)^2
= 4k^2
= 2(2k^2)
Because we can write n^2 in form of 2(something) , we can say that n^2 is even.

The sum of an even and odd number is odd.
Let n1 be a even number , then n1 can be written as = 2(k1) for some integer k1.
Let n2 be a odd number , then n2 can be written as = 2(k2)+1 , for some integer k2.
Adding n1 and n2,
n = n1 + n2
= 2k1 + (2k2 +1)
= 2(k1+k2) + 1
Thus , n can be written in the form of 2k+1 , we conclude that n is odd.

The sum of two even number is even.
Let n1 be a even number , then n1 can be written as = 2(k1) for some integer k1.
Let n2 be a even number , then n2 can be written as = 2(k2), for some integer k2.
Adding n1 and n2,
n = n1 + n2
= 2k1 + 2k2
= 2(k1+k2)
Thus , n can be written in the form of 2k , we conclude that n is even.

The sum of two odd number is even.
Let n1 be a odd number , then n1 can be written as = 2(k1)+1,for some integer k1.
Let n2 be a odd number , then n2 can be written as = 2(k2)+1, for some integer k2.
Adding n1 and n2,
n = n1 + n2
= (2k1 + 1) + (2k2 + 1)
= 2k1 + 2k2 + 2
= 2(k1+k2+1)
Thus , n can be written in the form of 2k , we conclude that n is even.

2 -
[-p ^ ( p v q ) ] -> q.
Using :

p q p->q
T T T
T F F
F T T
F F T


Here's the truth table :

p q -p p v q -p^(pvq) [-p ^ ( p v q ) ] -> q.
F F T F F T
F T T T T T
T F F T F T
T T F T F T

A tautology is a formula which is "always true" and as we can see that this proposition remains always trur, this is a Tautology.

3 -
(p v -q) ^ (q v -r) ^ (r v -p) ^ (p v q v r) ^ (-p v -q v -r ).

A proposition is satisfiable if there is at least one true result in its truth table

Truth Table :

p q r p v -q q v -r r v -p p v q v r -p v -q v -r (p v -q) ^ (q v -r) ^ (r v -p) ^ (p v q v r) ^ (-p v -q v -r )
F F F T T T F T F
F F T T F T T T F
F T F F T T T T F
F T T F T T T T F
T F F T T F T T F
T F T T F T T T F
T T F T T F T T F
T T T T T T T F F


As there is no true condition , the given preposition in not satisfiable.

4 -
p ^ q

Truth Table :

p q p^q
T T T
T F F
F T F
F F F

if, and only if, both p and q are T, the end result will be T. => True
only if both p and q are 1 will result in a 1 . => True
If only 1 of the variables is 1, the result CAN still be a 1  => False
in 3 of the 4 outcomes, the outcome will be F.  => True


Related Solutions

I really would appreciate it if someone could provide me with the Excel formulas to calculate...
I really would appreciate it if someone could provide me with the Excel formulas to calculate the last five (5) columns of the spreadsheet listed below. # of Trading Days Before/After Event Date DATE Closing Prices Procter&Gamble MKT-Rf Rf Returns Honeywell Expected Returns Procter&Gamble (ER) Abnormal Returns Procter&Gamble (AR) AR t-test AR Significant (Y/N) ? Cumulative Abnormal Returns Procter&Gamble (CAR) -270 1/2/2004 49.4950 -0.17 0.003 -269 1/5/2004 49.7400 1.2 0.003 0.4950056 -268 1/6/2004 49.4900 0.2 0.003 -0.5026136 -267 1/7/2004 49.0500...
I would really appreciate it if you could explain this problem step by step, in as...
I would really appreciate it if you could explain this problem step by step, in as much detail as possible, as I am having a difficult time trying to understand it. Thank you :) How many liters of CO2 can be produced by combustion of 5.80 g butane with 15.0 liters of oxygen . All gases measured at STP. I appreciate your help!
Hello! Could someone please answer this for me? I would greatly appreciate it, and will totally...
Hello! Could someone please answer this for me? I would greatly appreciate it, and will totally like your answer! Length isn't necessarily important, just needs to be accurate and such. Thanks in advance!!!!!!! (References are needed when using examples, or include the link from where you got it and I can format the reference). "Discuss the difference in the cost of items sold by a retail shoe store, the cost of items sold by a shoe manufacturer, and the cost...
i would really appreciated if answer this question quickly thank you all ! A vertical curve...
i would really appreciated if answer this question quickly thank you all ! A vertical curve is designed for 75 km/h and has an initial grade of + 3.5% and a final grade of -2.0%. The PVT is at station 3 + 560. It is known that a point on the curve at station 3 + 520 is at elevation 85 m. What is the stationing and elevation of the PVC? What is the stationing and elevation of the high...
If you have a chance please answer as many as possible, thank you and I really...
If you have a chance please answer as many as possible, thank you and I really appreciate your help experts! Question 1 2 pts A consumer analyst reports that the mean life of a certain type of alkaline battery is no more than 63 months. Write the null and alternative hypotheses and note which is the claim. Ho: μ ≤ 63 (claim), Ha: μ > 63 Ho: μ = 63 (claim), Ha: μ ≥ 63 Ho: μ > 63 (claim),...
If you have a chance please answer as many as possible, thank you and I really...
If you have a chance please answer as many as possible, thank you and I really appreciate your help experts! Question 6 2 pts A scientist claims that the mean gestation period for a fox is 51.5 weeks. If a hypothesis test is performed that rejects the null hypothesis, how would this decision be interpreted? The evidence indicates that the gestation period is less than 51.5 weeks There is enough evidence to support the scientist’s claim that the gestation period...
If you have a chance please answer as many as possible, thank you and I really...
If you have a chance please answer as many as possible, thank you and I really appreciate your help experts! Question 16 2 pts In a hypothesis test, the claim is μ≤28 while the sample of 29 has a mean of 41 and a standard deviation of 5.9. In this hypothesis test, would a z test statistic be used or a t test statistic and why? t test statistic would be used as the sample size is less than 30...
Could you explain this to me? I'm really confused. I need to learn it step by...
Could you explain this to me? I'm really confused. I need to learn it step by step. Thank you so much! So this is the sample set the s ample mean is 100 and the SD is 10 and the s ample size is 500. Can you construct the 95 % confidence interval>
I'm having difficulty understanding these questions. I would appreciate the answer with an explanation, thank you...
I'm having difficulty understanding these questions. I would appreciate the answer with an explanation, thank you ! Question 1 A one-year discount bond issued by X has a payout of $550 and today's price is $510. A one-year discount bond issued by Y has a payout of $1,290 and today's price is $1,155. Then the bond issued by X has a ____ yield than the bond issued by Y, and this could be because X has a ____ default risk...
If you could explain this and answer it, I would greatly appreciate it. C. Use Excel...
If you could explain this and answer it, I would greatly appreciate it. C. Use Excel (or equivalent application) to determine how long it will take for an investment to triple in value at interest rates of 1%, 5%, 10%, 15%, 20%, and 25%. Can you determine an approximate “Rule” for how to quickly calculate how long it takes for an investment to triple in value?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT