A
A
A
n ≤130 n ≤ 130 n ≤5
1. ∑ 4 n= ∑ 4 n−∑ 4 n=4 ¿
n =6 n=1 n=1
= 4( (130x131)/2 – (5 x 6)/2 )
= 34000
n ≤611 n ≤ 15
∑ n− ∑ −6 ¿ ¿
n=16 n =1
= 151233
3. 𝑝 − (q ∩ r)
p q r q∩r (q ∩ r) 𝑝 − (q ∩ r)
1 1 1 1 0 1
1 1 0 0 1 0
1 0 1 0 1 0
1 0 0 0 1 0
0 1 1 1 0 0
0 1 0 0 1 0
0 0 1 0 1 0
0 0 0 0 1 0
b. (q ∪ r)∪ (𝑞 − 𝑟)
p q r r q∪r (q ∪ r) (𝑞 − 𝑟) (q ∪ r)∪ (𝑞 − 𝑟)
1 1 1 0 1 0 0 0
1 1 0 1 1 0 1 1
1 0 1 0 1 0 0 0
1 0 0 1 1 0 0 0
0 1 1 0 0 1 0 1
0 1 0 1 1 0 1 1
Abdullah Shaheen Assignment Three 101100558
0 0 1 0 0 1 0 1
0 0 0 1 1 0 0 0
c. ((𝑞 ∪ 𝑟) − 𝑝) ∪ (𝑝 ∩ 𝑟)
p q r p q q ∪r (q ∪ r)−p ¿ ∩ 𝑟) ((q ∪ r) − p) ∪ (¿ ∩ r)
1 1 1 0 0 1 0 0 0
1 1 0 0 0 0 1 0 1
1 0 1 0 1 1 0 0 0
1 0 0 0 1 1 0 0 0
0 1 1 1 0 0 0 1 1
0 1 0 1 0 0 0 0 0
0 0 1 1 1 1 0 1 1
0 0 0 1 1 1 0 0 0
1 1 1 0 1 0 1 0 1
1 1 0 1 1 1 0 1 0
1 0 1 0 1 0 0 0 1
1 0 0 1 1 1 0 1 0
0 1 1 0 1 0 1 0 1
0 1 0 1 0 0 0 0 0
0 0 1 0 1 0 0 0 1
0 0 0 1 0 0 0 0 0
4. ((𝑌 ∪ 𝑍) ∩ ( X ∪ 𝑍)) − (𝑌 ∩ 𝑍)
X Y Z X Y∪Z ¿∪ 𝑍) 𝑌∩𝑍 ((𝑌 ∪ 𝑍) ∩ ( X ∪ 𝑍)) ((𝑌 ∪ 𝑍) ∩ ( X ∪ 𝑍)) − (𝑌 ∩ 𝑍)
1 1 1 0 1 1 1 1 0
1 1 0 0 1 0 0 0 0
1 0 1 0 1 1 0 1 1
1 0 0 0 0 0 0 0 0
0 1 1 1 1 1 1 1 0
0 1 0 1 1 1 0 1 1
0 0 1 1 1 1 0 1 1
0 0 0 1 0 1 0 0 0
Abdullah Shaheen Assignment Three 101100558
(Z ∪ (Y ∩ X )) ∩ ( ( Y ∩Z ∩ X ) ∪ ( (Y ∩ Z) ∩ X)) by De Morgan’s
(Z ∪ (Y ∩ X )) ∩ ( (Y ∩ Z)∩ (X ∪ X )) by Distribution
(Z ∪ (Y ∩ X )) ∩ ( (Y ∩ Z) ∩ U) by Complement
(Z ∪ (Y ∩ X )) ∩ ( (Y ∩ Z) by Identity
((Z ∪ Y ) ∩ (Z ∪ X )) ∩ ( (Y ∩ Z)) by Distributive
((Y ∪ Z) ∩ ( Z ∪ X )) ∩ ( (Y ∩ Z))by commutative
((Y ∪ Z) ∩ ( Z ∪ X )) − (Y ∩ Z) by Difference Equivalence
If we simplify one equation, we get the other one, hence both equations are equal
6. (r ∩ (r ∪ p)) ∩ (r ∪( p ∪q ))
(r ∩ (r ∪ p)) ∩ (r ∩ (p ∪ q)) by De Morgan’s
r ∩ (r ∩ (p ∪ q)) by Absorption
(r ∩ r ) ∩ (p ∪ q) by Associative
∅ ∩ (p ∪ q) by Complement
∅ by Dominance