a)Establish that: is a tautology.
b)Translate in two ways each of these statements into logical expressions using predicates, quantifiers, and logical connectives. First, let the domain consists of the students in your class and second, let it consist of all people.
i) Everyone in your class has a mobile phone.
ii) Somebody in your class has seen a foreign movie.
iii) There is a person in your class who cannot swim.
iv) All students in your class can solve quadratic equations.
v) Some students in your class does not want to be rich.
c)Prove that if m + n and n + p are even integers, where m, n, and
p are integers, then m + p is even. What kind of proof did you use?
d)Prove, by induction that: 2 divides whenever n is a positive
integer.
Let P ( x ) denote the sentence 2x + y = 5. What are the truth value of the following where the domain of x and y is the set of all integers.
1. Ɐx ⱯyP( x,y)
2. Ɐx ꓱyP ( x,y)
3. ꓱx ⱯyP ( x,y)
4. ꓱx ꓱyP( x,y)
Identify if the following statements are predicate logic. Give a domain of discourse for each propositional function. (3 items x 5 points)
The movie won the Academy Award for the past 2 years.
1 + 3 = 4
(x+2)2 is a prime number.
Let and be the propositions:
: “Ahmad comes to the party”,
: “Salim comes to the party”,
: “Khalid comes to the party”,
: “Bader comes to the party”.
Write the following propositions using and logical connectives:
a) “Nether Ahmad nor Salim come to the party”.
b) “If Bader comes to the party, then Salim and Khalid come too”.
c) “Khalid comes to the party only if Ahmad and Salim do not come”.
d) “Bader comes to the party if and only if Khalid comes and Ahmad doesn’t come”.
e) “If Bader comes to the party, then, if Khalid doesn’t come then Ahmad comes”.
f) “Khalid comes to the party provided that Bader doesn’t come, but, if Bader comes, then Salim doesn’t come”.
g) “A necessary condition for Ahmad coming to the party is that, if Salim and Khalid aren’t coming, Bader comes”.
h) “Ahmad, Salim and Khalid come to the party if and only if Bader doesn’t come, but, if neither Ahmad nor Salim come, then Bader comes only if Khalid comes”.
Solve the problem and show solutions
1.A clothing store wants to stock
sweatshirts that come in four size (small, medium,large,x-large) and in 3 colors (yellow,blue, white). How many different types of sweatshirts will the store have to stock.
2.A clothing store wants to stock sweatshirts that come in four size (small, medium,large,x-large) and in 3 colors (yellow,blue, white). How many different types of sweatshirts will the store have to stock?
3.For her birthday, Karla received a new wardrobe consisting of 5 shirts, 3 pairs of pants,2 skirts, and 3 pairs of shoes for her birthday. How many outfit can she make?
⦁ Find all such that .
⦁ If is a zero-one matrix, find .
⦁ Find the inverse of the encrypting function
,
and use it to decrypt the message “ZRQUBFNB”.
Consider the design of a communication system.
⦁ How many three-digit phone prefixes that are used to represent a particular geographic area (such as an area code) can be created from the digits 0 through 9?
⦁ As in part i., how many three-digit phone prefixes are possible that do not start with 0 or 1, but contain 0 or 1 as the middle digit?
⦁ How many three-digit phone prefixes are possible in which no digit appears more than once in each prefix?
Suppose that an operating room needs to handle three knee, four hip, and five shoulder surgeries.
⦁ How many different sequences are possible?
⦁ How many different sequences have all hip, knee, and shoulder surgeries scheduled consecutively?
⦁ How many different schedules begin and end with a knee surgery?
Number plates in an Arab country consist of 3 letters (chosen from a specified set of 20 letters from the Arabic alphabet) and 4 digits (from 0 to 9).
⦁ Find the probability of a plate having identical letters.
⦁ Find the probability of a plate having identical digits.
⦁ Find the probability of a plate having consecutive digits.
An urn contains 5 red balls and 6 blue balls. A ball is drawn randomly, its colour is noted, and then the ball is replaced in the urn. If this process is repeated four times:
⦁ What is the probability of getting two red balls and 2 blue balls?
⦁ What is the probability that all 4 balls are of the same colour?
⦁ What is the probability that the first red ball is drawn in the 4th trial?