Exercise Set 2.1
Question 1
- can be written in prefix notation
- All algebraic expressions can be written in prefix notation
Question 2
- All numbers are odd; is odd
Question 3
- My mind is shot
- The logic is confusing
Question 4
- has vertices and edges
- is complete
- it’s complete
Question 5
(a) Is an statement.
(b) Is not an statement. (depends on the context)
(c) Is an statement.
(d) Is an statement. (we don’t know )
Question 6
(a)
(b)
Question 7
Question 8
(a)
(b)
(c)
(d)
(e)
Question 9
(a)
(b)
(c)
Question 10
(a)
(b)
(c)
(d)
(e)
Question 11
Both conditions can be true simultaneously. For example, if a team wins games 1, 3, and 4, they have:
- Two games in a row (games 3-4)
- Three total games Therefore it’s inclusive.
Question 12
Question 13
Question 14
Question 15
Question 16
They are logically equivalent; if is true, therefore is always true, and if it’s false, is always false.
Question 17
They are not logically equivalent.
Question 18
They are logically equivalent. The disjucntion of an statement with a tautology is always true, therefore a tautology.
Question 19
They are logically equivalent. The conjuction of an statement with a tautology is logically equivalent with the statement.
Question 20
They are not logically equivalent. is a contradication, but is logically equivalent to .
Question 21
They are logically equivalent, due to associative laws.
Question 22
They are logically equivalent, due to distributive laws.
Question 23
They are not equally equivalent.
Question 24
They are not equally equivalent.
Question 25
Hal is not a math major or Hal’s sister is not a computer science major.
Question 26
Sam is not an orange belt or Kate is not a red belt.
Question 27
The connector is not loose and the machine is plugged.
Question 28
The train is not late and my watch is not fast.
Question 29
This computer program doesn’t have a logical error in the first ten lines and it is not being run with an incomplete data set.
Question 30
The dollar is not at an all-time high or the stock market is not at a record low.
Question 31
(a) The first character of is either or and the second character of is either or .
(b) The first character if is neither nor and the second character of is either or .
(c) The first character is either or and the second character is either or .
Question 32
Question 33
Question 34
Question 35
Question 36
Question 37
Question 38
Question 39
Question 40
It’s a tautology.
Question 41
It’s a contradiction.
Question 42
It’s a contradiction.
Question 43
It’s a tautology.
Question 44
(a) There is no real number that can satisfy
(b) There is no real number that can satisfy
Question 45
Let
- The statement “Bob is a math major” be .
- The statement “Bob is a computer science major” be .
- The statement “Ann is a math major” be .
- The statement “Ann is a computer major” be .
(a) The statement is equivalent to
(b) The statement is equivalent to
In the second statement let , therefore the second statement is equivalent to,
For this statement to be true, and must both be true, assuming as true would make false, therefore has to be true. In conclusion, for this statement is logically equivalent to . which is the same as the first statement.
Question 46
(a)
(b) They are logically equivalent.
(c) They are not logically equivalent.
Question 47
This is asking about English usage where two positive statements combine to create a negative meaning.
Common example: “Yeah, right!”
- When said sarcastically, this means “I don’t believe you” or “That’s not true”
- Both “yeah” and “right” are positive affirmations, but together (with sarcastic tone) they express disbelief
Other examples:
- “Sure, sure” (said dismissively)
- “Of course, of course” (said sarcastically)
- “Absolutely” (said with heavy sarcasm)
The key is that the repetition or tone converts the affirmative into ironic negation.
Question 48
- Step (a): Distributive laws
- Step (b): Commutative laws
- Step (c): Negation Laws
- Step (d): Identity Laws
Question 49
- Step (a): Commutative laws
- Step (b): Distributive laws
- Step (c): Negation Laws
- Step (d): Identity Laws
Question 50
By Absorption Laws:
Question 51
By Absorption Laws:
Question 52
By De Morgan’s Laws:
By Distributive Laws:
By Negation Laws:
By Identity Laws:
Question 53
By De Morgan’s Laws:
By Distributive Laws:
By Negation Laws:
By Identity Laws:
By Absorption Laws:
Question 54
By De Morgan’s Law:
By Associative and Idempotent Laws:
By Distributive Laws:
By Negation Laws:
By Identity Laws:
Exercise Set 2.2
Question 1
If it doesn’t contain a stop or a to go, then this loop will repeat exactly times.
Question 2
If I catch the 8:05 bus, then I will be on time for work.
Question 3
If you don’t freeze I will shoot.
Question 4
If you don’t fix my ceiling I will not pay my rent.
Question 5
Question 6
Question 7
Question 8
Question 9
Question 10
Question 11
Question 12
If then and if then .
Question 13
(a)
Saying “if A then B” is the same as saying “Not A or B”.
(b)
The negation of “if A then B” is “A and not B”.
Question 14
(a) Consider , since , thus
By the same logic,
Using De Morgan’s law,
(b)
- If is a prime and is not odd, then is .
- If is a prime and is not , then is odd.
Question 15
Assume , and , therefore,
Therefore they are not logically equivalent.
Question 16
Let,
- be “You paid full price”
- be “You bought it at Crown Books”
Thus,
- First statement:
- Second statement:
No, they are not logically equivalent.
Question 17
Let,
- be ” is a factor of ”
- be ” is a factor of ”
- be ” is a factor of ”
Thus,
- First statement:
- Second statement:
They are logically equivalent since,
Question 18
Let,
- be “It walks like a duck.”
- be “It talks like a duck.”
- be “It is a duck.”
Thus,
- First statement:
- Second statement:
- Third statement:
The first and second statements are logically equivalent since,
But they are not logically equivalent with the first one, assume , and , thus:
Question 19
Let,
- be “Sue is Luiz’s mother.”
- be “Ali is his cousin.”
Thus,
- First statement:
- Second statement:
The negation of the first statement would be,
Which is not logically equivalent to the second statement,
Question 20
(a) is a square and is not a rectangle.
(b) Today is New Year’s Eve and tomorrow is not January.
(c) The decimal expansion of is terminating and is not rational.
(d) is prime and is not odd and is not .
(e) is non-negative and is not positive and is not .
(f) Tom is Ann’s father and, Jim is not her uncle or Sue is not her aunt.
(g) is divisible by and, is not divisible by or is not divisible by .
Question 21
Since , therefore and , thus, (a)
(b)
(c)
Question 22
(a) If is not a rectangle then is not a square.
(b) If tomorrow is not January then today is not New Year’s Eve.
(c) If is not rational then the decimal expansion of is not terminating.
(d) If is not odd and is not then is not prime.
(e) If is not positive and is not then it is not non-negative.
(f) If Jim is not her uncle or Sue is not her aunt then Tom is not Ann’s father.
(g) If is not divisible by or is not divisible by then is not divisible by .
Question 23
(a)
- Converse: If is a rectangle then is a square.
- Inverse: If is not a square then is not a rectangle.
(b)
- Converse: If tomorrow is January then today is New Year’s Eve.
- Inverse: If today is not New Year’s Eve then tomorrow is not January.
(c)
- Converse: If is rational then the decimal expansion of is terminating.
- Inverse: If the decimal expansion of is not terminating then is not rational.
(d)
- Converse: If is odd or is then is prime.
- Inverse: If is not prime then is not odd and is not .
(e)
- Converse: If is positive or is then is non-negative.
- Inverse: If is not non-negative then is not positive and is not .
(f)
- Converse: If Jim is her uncle and Sue is her aunt then Tom is Ann’s father.
- Inverse: If Tom is not Ann’s father then Jim is not her uncle or Sue is not her aunt.
(g)
- Converse: If is divisible by and is divisible by then is divisible by .
- Inverse: If is not divisible by then is not divisible by or is not divisible by .
Question 24
Question 25
Question 26
Question 27
Question 28
- The statement “I say what I mean” can be rewritten as “If I mean it then I say it.”
- The statement “I mean what I say” can be rewritten as “If I say it then I mean it.”
Let,
- be “I say it.”
- be “I mean it.”
Thus,
- The first statement:
- The second statement:
These statements are converse of each other and are not logically equivalent.
Question 29
Question 30
Question 31
Question 32
If quadratic equation has two distinct real roots then its discriminant is greater than zero and if its discriminant is greater than zero then the quadratic equation has two distinct real roots.
Question 33
If the integer is even then it equals twice some integer and if it equals twice some integer then the integer is even.
Question 34
- If The Cubs win the pennant then they win tomorrow’s game.
- If The Cub don’t win tomorrow’s game then they don’t win the pennant.
Question 35
- If Sam is allowed on Signe’s racing boat then he is an expert sailor.
- If Sam is not an expert sailor then he is not allowed on Signe’s racing.
Question 36
Let
- be “you major in mathematics.”
- be “you get a B average or better.”
- be “you take accounting.”
- be “you get hired.”
Since and , therefore,
Thus, no, the manager has not lied.
Question 37
If a new hearing is not granted then payment will be made on the fifth.
Question 38
If it does not rain then Ann will go.
Question 39
If a security code is not entered then this door will not open.
Question 40
If you catch the 8:05 bus then you will be on time for work.
Question 41
If a triangle has two angles then it is a right triangle.
Question 42
- If the number is not divisible by then is not divisible by .
- If it is divisible by then it is divisible by .
Question 43
- If Jim doesn’t do homework regularly then Jim won’t pass the course.
- If Jim passes the course then he has done homework regularly.
Question 44
If Jon’s team win the rest of its games then it will win the championship.
Question 45
If this computer program produces error messages during translation then it is not correct.
Question 46
Let,
- be “compound X is boiling.”
- be “its temperature must be at least .”
Therefore,
(a) , it is not logically equivalent to , therefore it’s not necessarily true.
(b) , it is logically equivalent to , therefore it is true.
(c) , it is true.
(d) , it is not logically equivalent to , therefore it’s not necessarily true.
(e) , it is logically equivalent to , therefore it is true.
(f) , it is not logically equivalent to , therefore it’s not necessarily true.
Question 47
(a)
(b)
Question 48
(a)
(b)
Question 49
(a)
(b)
Question 50
(a)
(b)
Question 51
Since and can be written in form and can be written is form, therefore it is safe to say that any statement can be written in form.