Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( c ) Using the following theorem: A positive integer ( including 0 ) is divisible by 3 if and only if the sum of

(c) Using the following theorem:
A positive integer (including 0) is divisible by 3 if and only if the sum of its digits is a
multiple of 3. For example, the number 732 is divisible by 3 since 7+3+2=12 is a
multiple of 3. The number 143 is not divisible by 3 since 1+4+3=8 is not a multiple of
Suppose we design a machine that recognizes the numbers that are divisible by 3. We
call the machine M3
i.(3 points) Draw the state diagram of a DFA M3 with alphabet ={0,1,2,3,4,5,6,7,8,9}
and
L(M3)={xin**|x=3k,kinu{0}}
HINT: Use the states of your DFA to keep track of n mod 3. Clearly show accepting
states.
ii.(3 points) Trace the computation of your machine on input 76521. Does your machine
accept 76521?
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions