Discrete Mathematics with Applications 4th Edition

Published by Cengage Learning
ISBN 10: 0-49539-132-8
ISBN 13: 978-0-49539-132-6

Chapter 7 - Functions - Exercise Set 7.1 - Page 395: 32

Answer

$a-\\ f(1,1,1)=(4(1) + 3(1) + 2(1))\,\,mod\,2=9\,mod\,2=1\\ f(0,0,1)=(4(0) + 3(0) + 2(1))\,\,mod\,2=2\,mod\,2=0\\ $ $b-\\\begin{matrix} \begin{Bmatrix} input & output\\ 000& 0\\ 001 & 0\\ 010 & 1\\ 011 & 1\\ 100 & 0\\ 101 & 0\\ 110 &1 \\ 111 & 1 \end{Bmatrix} \end{matrix} $

Work Step by Step

$f (x_{1}, x_{2}, x_{3}) = (4x_{1} + 3x_{2} + 2x_{3})\,\,mod\,2.\\ a-\\ f(1,1,1)=(4(1) + 3(1) + 2(1))\,\,mod\,2=9\,mod\,2=1\\ f(0,0,1)=(4(0) + 3(0) + 2(1))\,\,mod\,2=2\,mod\,2=0\\ b-\\ f(0,0,0)=(4(0) + 3(0) + 2(0))\,\,mod\,2=0\,mod\,2=0\\ f(0,0,1)=(4(0) + 3(0) + 2(1))\,\,mod\,2=2\,mod\,2=0\\ f(0,1,0)=(4(0) + 3(1) + 2(0))\,\,mod\,2=3\,mod\,2=1\\ f(0,1,1)=(4(0) + 3(1) + 2(1))\,\,mod\,2=5\,mod\,2=1\\ f(1,0,0)=(4(1) + 3(0) + 2(0))\,\,mod\,2=4\,mod\,2=0\\ f(1,0,1)=(4(1) + 3(0) + 2(1))\,\,mod\,2=6\,mod\,2=0\\ f(1,1,0)=(4(1) + 3(1) + 2(0))\,\,mod\,2=7\,mod\,2=1\\ f(1,1,1)=(4(1) + 3(1) + 2(1))\,\,mod\,2=9\,mod\,2=1\\ $ $\begin{matrix} \begin{Bmatrix} input & output\\ 000& 0\\ 001 & 0\\ 010 & 1\\ 011 & 1\\ 100 & 0\\ 101 & 0\\ 110 &1 \\ 111 & 1 \end{Bmatrix} \end{matrix} $
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.