I am given the following regular expression, which accepts all strings over $\{a,b,c\}$ whose $n$th character from the right is $a$:
$$ (a|b|c)^*a(a|b|c)^{n-1}. $$
The exercise asks for the number of states in the minimal DFA for the language.
The answer must be similar to this question but still, I don't get it.
When $n = 1$, I was able to determine that the answer is $2$ by constructing an $\epsilon$-NFA from the regular expression, determinizing it, and minimizing the resulting DFA.
Regular expression: (a|b|c)*(a|b)(a|b|c)^n-1
– Nikos Nov 03 '19 at 16:53