MATH 240: Discrete structures I. Fall 2011
Assignment #1: Sets and Logic. Solutions.
1.
Set Identities. Prove the following set identities.
a) (A B) C = (A C) (B C),
b) (A B) (A C) = B C.
Solution a):
5|@|i4i?| @?_ 6ht| hLLu Lu
hhL<t A iLhi4
Ohw D @ iD> E> => Fj eh d qlwh vhw ri dw ohdvw wkuhh dowhuqdwlyhv1 D wudqvlwlyh
suhihuhqfh ryhu D lv d udqnlqj ri wkh dowhuqdwlyhv lq D iurp wrs wr erwwrp/ zl
Notes on Logic
1 Propositional Calculus
A proposition or statement is an assertion which can be determined to be either true or false (T or F). For example, zero is less than any positive number is a
MATH 240: Discrete structures I. Fall 2011
Assignment #4: Cryptography and combinatorics. Solutions.
1.
Fermat primality test.
A number m passes the Fermat primality test if 2m1 1(mod m).
a) Does m =
MATH 240: Discrete structures I. Fall 2011
Assignment #2: Proofs. Due Friday, October 12th.
1.
a)
Problems in NP. Show that the following problems are in NP.
The Knapsack problem.
Given n items number
MATH 240: Discrete structures I. Fall 2011
Assignment #3: Number theory. Solutions.
3
1.
Prime factorization. Show that
2.
Euclids algorithm. Use the Euclids Algorithm to nd each of the following.
3 i
MATH 240: Discrete structures I. Fall 2011
Assignment #2: Proofs. Solutions.
1.
Problems in NP. Show that the following problems are in NP.
a) The Knapsack problem.
Given n items numbered 1 through n
MATH 240: Discrete structures I. Fall 2011
Assignment #5: Combinatorics and Graph Theory. Solutions.
1.
Fibonacci Numbers.
Show that for every positive integer n the Fibonacci number F5n is divisible
MATH 240: Discrete structures I. Fall 2011
Assignment #5: Combinatorics and Graph Theory.
Due Monday, November 28th.
1.
Fibonacci Numbers.
Show that for every positive integer n the Fibonacci number F
Further Notes on RSA Cryptosystem
Bob chooses a public lock as follows. He picks 3 large distinct primes p, q1 , q2
with p > q1 q2 . (E.g., think of q1 , q2 as 2-digit primes and p as a 400 digit
prim
Math 240: Discrete Structures I
Wednesday 17th October
Midterm Exam
Instructions. The exam is 50 minutes long and contains 2 questions. Write your answers clearly in the notebook provided. You may quo