Deterministic Finite State Automaton Construction

AI Thread Summary
A deterministic finite automaton (DFA) can be constructed to accept natural numbers where n mod 3 = 0. The hint suggests using the checksum of the digits to determine divisibility by 3, which involves summing the digits of the number. One user initially struggled with applying the hint but eventually solved the problem. The discussion concluded with a request to close the thread after the solution was found. This highlights the importance of understanding both the mathematical concept and its application in constructing a DFA.
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.
 
Back
Top