2. Consider a 3-bit integer a = a2a1a0 and a 2-bit integer b = bībo. Using the bits of a and b as your propositions (so you have 5 atomic propositions: ao, a1, a2, bo, and b1, where 0 indicates false and 1 indicates true), write a propositional logic formula for each of the following claims. Express your answers in either conjunctive or disjunctive normal form. (a) (a + b) is odd (b) a is divisible by 3 (c) a = b

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
2. Consider a 3-bit integer a = a2a1a0 and a 2-bit integer b = b1bo. Using the bits of a and b as
your propositions (so you have 5 atomic propositions: ao, a1, az2, bo, and b1, where 0 indicates
false and 1 indicates true), write a propositional logic formula for each of the following claims.
Express your answers in either conjunctive or disjunctive normal form.
(a) (a + b) is odd
(b) a is divisible by 3
(c)
a =
Transcribed Image Text:2. Consider a 3-bit integer a = a2a1a0 and a 2-bit integer b = b1bo. Using the bits of a and b as your propositions (so you have 5 atomic propositions: ao, a1, az2, bo, and b1, where 0 indicates false and 1 indicates true), write a propositional logic formula for each of the following claims. Express your answers in either conjunctive or disjunctive normal form. (a) (a + b) is odd (b) a is divisible by 3 (c) a =
Expert Solution
Step 1

Consider a 3-bit integer a = a2a1a0 and a 2-bit integer b = b1b0. Using the bits of a and b as your propositions (so you have 5 atomic propositions: ao, a₁, a2, bo, and b₁, where 0 indicates false and 1 indicates true), write a propositional logic formula for each of the following claims. Express your answers in either conjunctive or disjunctive normal form.

(a) (a + b) is odd

(b) a is divisible by 3

(c) a = b

Solution: -

(a) (a+b) is odd

There are 3bits integer for adding so we are take c will be final carry

Putting value of Pi, Gi in 3

C3=(A2)+(A1.B1)(A2)+(A0.B0)(A1+B1)(A2)                       [TAKING C0=0]

C3=A2 +A1A2B1+A1B1+(A0B0)(A1A2+A1+B1A2+B1)

C3=A2+A1A2B1+A1B1+A0A1A2B0+A0A1B0+A0A2B1B0+A0B0B1 ......................1

Assume A0,A1,A2,B0,B1.......... is 1.

then we are put the value of 1 in eq...1

1+1+1+1+1+1+1 => 7

So, (a+b) is odd "True"

(b) a is divisible by 3

a =a0a1a2 = 3

then 

if a is divisible  by 3 value return is 1 "True".

(c) a = b

a sum is 3 and b sum is 2. so the return value is not equal to "False".

 

 

 

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 6 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education