I am designing an automaton which determines whether a binary number is divisible by 3:
$$ \{x \in \{0, 1\}^* \mid \text{$x$ represents a multiple of three in binary} \} $$
0 | 1 | |
---|---|---|
0F | 0 | 1 |
1 | 2 | 0 |
2 | 1 | 2 |
This is the transition state diagram of the automaton, whose states are $0,1,2$; the states are drawn from left to right.
But here the automaton reads the input from left to right. So at first I didn't think about the order (left to right or right to left); I tried to design an automaton which reads the binary from right to left but after much time I couldn't design any automaton which reads the binary right to left and tells whether it is divisible by 3.
Can someone help me out to design such an automaton, or is it possible to design an automaton which reads from right to left and can tell whether its input is divisible by 3?