Sunteți pe pagina 1din 2

Discrete Mathematics

Assignment: 01 Instructor: Bibhas Adhikari TA: Ranveer Singh Last date of submission: January 31, 2013

1. Let p and q be the propositions p: q: Sachin took his ODI retirement last month. IIT Raj mess food is not delicious. [1+1+1+1]

Express each of these propositions as an English sentence. (a) p q (b) p q (c) p q (d) p (p q). 2. Use symbols to write the logical form of the following argument

[2]

If this computer program is correct, then it produces the correct output when run with the test data my teacher gave me. This computer program produces the correct output when run with the test data my teacher gave me. Therefore, this computer program is correct. 3. Write Converse, Inverse and Contrapositive of conditional statement: Our TA plays cricket whenever he makes assignment in Latex. [1+1+1] 4. Construct Truth Table for following (a) ( p) q (b) (p q) r (c) (p q) r. 5. Show that and form a functionally complete collection of logical operator. 6. Which of these are Tautology? (a) ( p (p q)) q (b) ( q (p q)) p 7. Find a Counter Example if possible to these universally quantied statement,where the domain for all variables consists of all integers. [2+2+2] (a) x (x2 = 5)
bibhas@iitj.ac.in pg201283008@iitj.ac.in

[2+2+2]

[2] [2+2]

(b) x (|x| > 2) (c) x (x > 0 x < 0) 8. What is the negation of each of the following. (a) x (p(x) q(x)) (b) x (x2 > x) (c) There is a student who copied this assignment. 9. Find all positive integers d such that d divides both n2 + 1 and (n + 1)2 + 1 for some integer n. [2] 10. True or False (Justify your answer). [2+2] [2+2+2]

(a) Let x and y be integers. Then 2x + 3y is divisible by 17 i 9x + 5y is divisible by 17. (b) (3n > 2n ). (Use Mathematical Induction ) 11. Show that if n is an integer greater than 1, then n does not divide 2n 1. 12. If x 1 then (1 + x)n (1 + nx) for all natural numbers n.(Use Induction) [2] [2]

13. Let 2p + 1 be a prime number, where p is an odd number greater than 1. Prove by Mathematical Induction that for all integer n > 0
p

k2
k=1

is divisible by (2p + 1).

[2]

14. Design a circuit to take input signals P, Q, and R and output a 1 if and only if all three of P, Q, and R have the same value. [2] 15. Given the following information about a computer program, nd the mistake in the program. [4] (a) There is an undeclared variable or there is a syntax error in the rst ve lines. (b) If there is a syntax error in the rst ve lines, then there is a missing semicolon or a variable name is misspelled. (c) There is not a missing semicolon. (d) There is not a misspelled variable name.

All The Best!

S-ar putea să vă placă și