I have to construct a DFA with $\Sigma = \{A, C, D, X\}$ such that the DFA accepts the string $w = CA^{177}$ or $w = A^{177}C$ and sticks in the final state. $A^{177}$ means $177$ times $A$. So $CA_{1} \cdots A_{177}$ and $A_{1} \cdots A_{177}C$ should be accepted and else should be rejected.
For that I've constructed the DFA which is shown in the picture.
The state $175A$ is a placeholder for the part of the DFA which counts $175 As$ and is not a single state.
I think we don't have to draw the whole DFA state by state, since it gets very big. Instead I'd draw a DFA like shown and describe what happens in $175A$ "state".
So the description for $175A$ would be like: $175A$ is a sub DFA with $175$ states, which implements $mod$ $175$.
Is my logic and the DFA correct? Is it minimal?
Thanks Asg
