Deterministic Finite State Automaton Construction

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
francis21
Messages
8
Reaction score
0

Homework Statement


Find a simple DFA (i.e. deterministic finite automaton) that accepts all natural numbers n for which n mod 3 = 0.

Hint: A natural number is divisible by 3 if its checksum (or sum of digits) is divisible by 3.


Homework Equations





The Attempt at a Solution



I'm not sure how the hint can help for this question, even though I know what it means. For instance, 137 = 1+3+7 = 11 mod 3 ≠ 0 etc.

Any other useful hints or suggestions would be great. Thanks. :)
 
Physics news on Phys.org
I have finally solved the problem, so its all good now.

Can the admin close this thread down. Thanks.