Finite Automata

Answer & solution
Answer: D over the unary alphabet (no official key was published)
Step through it (2 parts)
1. The possible lengths are 3a+5b, a,b≥0:0,3,5,6 and all integers≥8. The missing nonnegative lengths are 1,2,4,7.
2. A unary DFA counts lengths 0 through 7, then enters an accepting sink at 8, using 9 states. For any 0≤i<j≤8, append 7−i symbols: the first length becomes 7 and is rejected, while the second exceeds 7 and is accepted.
3. Thus all nine states are distinguishable and D is minimal. This treats the stated expression as a language over{1}; a larger alphabet would require a rejecting sink for other symbols.
4. Teaching check: Lengths 0,3,5,6 and all lengths at least eight are accepted; 1,2,4,7 are rejected. Build states recording exact lengths below eight, followed by one accepting sink. Distinguishability proves this nine-state construction minimal, rather than merely establishing an upper bound.