Question: ( 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 is divisible by if and only if the sum of its digits is a
multiple of For example, the number is divisible by since is a
multiple of The number is not divisible by since is not a multiple of
Suppose we design a machine that recognizes the numbers that are divisible by We
call the machine
i points Draw the state diagram of a DFA with alphabet
and
kin
HINT: Use the states of your DFA to keep track of mod Clearly show accepting
states.
ii points Trace the computation of your machine on input Does your machine
accept
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
