0% found this document useful (0 votes)
47 views

Assignment 4

This document contains 25 questions related to propositional logic, predicate logic, sets, permutations, combinations, and generating functions. The questions cover topics such as: determining the number of possible passwords given certain criteria; finding generating functions that correspond to numeric sequences; translating English statements to logical expressions using predicates, quantifiers, and connectives; and determining the truth values of logical statements using truth tables.

Uploaded by

PaperCurl
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Assignment 4

This document contains 25 questions related to propositional logic, predicate logic, sets, permutations, combinations, and generating functions. The questions cover topics such as: determining the number of possible passwords given certain criteria; finding generating functions that correspond to numeric sequences; translating English statements to logical expressions using predicates, quantifiers, and connectives; and determining the truth values of logical statements using truth tables.

Uploaded by

PaperCurl
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Assignment-4

(Elementary configuration: Permutations and Combinations, Generating function, Principle of


inclusion and exclusion Partitions, Propositional and Predicate Calculus: Well-formed formula,
connectives, quantifications, and predicate calculus.)

1. Each user on a computer system has a password, which is six to eight characters long, where
each character is an uppercase letter or a digit. Each password must contain at least one digit
and must start with a letter. How many possible passwords are there?
2. Let A be the set of 27 distinct English words. What shall be the minimum number of words i n
the set A that must begin with the same alphabet?

3 If
n
P4 = 2  5 P3 , find the value of 𝑛 . Ans. n=5

4 If
n
P4 = 20  n P2 , find the value of 𝑛 . Ans. n=7

5. Show that there are at least 9 people among a group of 100 people who were born in the same month.
6. Find the generating function of each of the following discrete numeric functions
(i). 2, 4, 8, 16, 32, ……. Ans. 2 (1 − 2 z ), 2 z  1

(ii). 0, 1, -2, 4, -8, ……... Ans. z (1 − 2 z ), −2 z  1

2 3 4 r +1
Ans. 9 (3 − z ) ,
2
(iii). 1, , , ,........... r ,
3 9 27 3
7. Find the generating functions of the following numeric functions
5
(i) an = 5.2n Ans: A( z ) =
(1 − 2 z )
8
(ii) an = 2n+3 , n  0 Ans: A( z ) =
(1 − 2 z )

(iii) ar = 5r + (−1)r 3r + 8r + 3cr


r (r + 1)(2r + 1)
8. Evaluate the sum 12 +22 + 32 + ⋯ 𝑟 2 using generating functions. Ans:
6
9. Determine the discrete numeric function corresponding to the following generating function
1
A( z ) = 1 z 0 7 z1 37 z 2 175 z 3
(i) ( z − 7 z + 12)
2
Ans: NF is , , , ,....
12 144 1728 20736
1
(ii) A( z ) = Ans: 5/5, -5/5, 35/5, -65/5,…..or 1, -1, 7, -13,…… the
(1 − 2 z )(1 + 3 z )
(n+1)th term of this sequence can be written as the coefficients of
z n (= a n ) = 1/ 5[2n +1 + (−1) n 3n ]

1 1 1 1  1 
1 r r +1

(iii) A( z ) = Ans: −   = 1 −    , r  0
5 − 6z + z2 4 20  5  4   5  

10. By using truth table, find whether the following is a tautology, contradiction, or contingencyin
propositional variables 𝑝, 𝑞 and 𝑟:
((𝑝 → 𝑞) 𝖠 (𝑝 ∨ 𝑟) 𝖠 (∼ 𝑞)) → 𝑟

11. Over the universe of four wheelers, let 𝐴(𝑥): 𝑥 is a four wheeler, 𝐵(𝑥): 𝑥 is a car and 𝐶(𝑥):
𝑥 is manufactured by Nissan. Express the following statements using quantifiers.
i) Every car is a four-wheeler manufactured by Nissan.
ii) There are cars that are not manufactured by Nissan.
iii) Every four-wheeler is a car.
12. By using truth table, find whether the following is a tautology, contradiction or contingency in
propositional variables 𝑝, 𝑞 and 𝑟:
((𝑝 → 𝑞) 𝖠 (𝑞 → 𝑟)) → (𝑝 → 𝑟)

13. Over the universe of students at MUJ, let 𝑃(𝑥): 𝑥 has studied computer programming and
𝑄(𝑥): 𝑥 is an engineer. Express the following statements using quantifiers.
i) Every student has studied computer programming, but some are not engineers.
ii) At least one of the students who has studied the computer programming is an engineer.
iii) If there is a student who is engineer, then computer programming must be studied by the
student.
14. Let p and q be the propositions
p : It is below freezing.
q : It is snowing.
Write these propositions using p and q and logical connectives (including negations).
(a) It is below freezing but not snowing.
(b) It is not below freezing, and it is not snowing.
(c) It is either snowing or below freezing (or both).
(d) If it is below freezing, it is also snowing.
(e) Either it is below freezing, or it is snowing, but it is not snowing if it is below freezing.
(f ) That it is below freezing is necessary and sufficient for it to be snowing.
15. Assume x is a particular real number. Determine whether statement (a) and (b) are logically
equivalent
a) x < 2 or it is not the case that 0 < x < 3.

b) x  0 or either x < 2 or x ≥ 3.
Do this question by letting p, q, r be the 3 statement variables for the 3 statements in a) and b).

Then write out a) and b) in symbols and now construct a truth table and a justifying sentence.
16. There are two restaurants next to each other one has sign that says, “Good food is not cheap” and
other has a sign that says, “Cheap food is not good”. Are the signs saying the same thing? Consider
the conditional statement p and verify the result by truth table.

17. Let P(x) be the statement “x can speak French” and let Q(x) be the statement “x knows the
computer language C++.” Express each of these sentences in terms of P(x), Q(x), quantifiers, and
logical connectives. The domain for quantifiers consists of all students of MUJ in 2019-20.
(a) There is a student at MUJ who can speak French and who knows C++.
(b) There is a student at MUJ who can speak French but who does not know C++.

18. Translate each of these statements into logical expressions using predicates, quantifiers, and
logical connectives. Let C(x) denote the predicate “x is in the correct place”, let E(x) denote the
predicate “x is in excellent condition”, and let T(x) denote the predicate “x is a tool”. and suppose
that the domain consists of all tools.
i) Something is not in the correct place.
ii) All tools are in the correct place and are in excellent condition.

19. Show that the following statement is a tautology.

((𝑝 ∨ 𝑞) 𝖠∼ 𝑝) → 𝑞

20. Let p, q, and r be the propositions


p :You have the flu.
q :You miss the final examination.
r :You pass the course.
Express each of these propositions as an English sentence.
(a) p → q (b) ¬q  r
(c) q →¬r (d) p  q  r
(e) (p →¬r)  (q →¬r)
21. Construct a truth table for each of these compound propositions.
(a) p ¬p (b) p  ¬p
(c) (p  ¬q) → q (d) (p  q) → (p  q)
(e) (p → q)  (¬q →¬p) (f ) (p → q) → (q → p)
22. Show that (p → q) → r and p → (q → r) are not logically equivalent.
23. Determine the truth value of each of these statements if the domain of each variable consists of
all real numbers.
(a)  x(x2 = 2) (b)  x(x2 = −1)
(c)  x(x2 + 2  1) (d)  x(x2  x)
24. Translate these statements into English, where C(x) is “x is a comedian” and F(x) is “x is
funny” and the domain consists of all people.
(a)  x(C(x) → F(x)) (b)  x(C(x)  F(x))
(c)  x(C(x) → F(x)) (d)  x(C(x) F(x))
25. Suppose that the domain of the propositional function P(x) consists of the integers
0, 1, 2, 3, and 4. Write down each of these propositions using disjunctions, conjunctions,
andnegations.
(a)  xP(x) (b)  xP(x) (c)  x¬P(x)
(d)  x¬P(x) (e) ¬  xP(x) (f ) ¬  xP(x)

You might also like