(a)
Assume A is a regular language.
Let P be the pumping length given by the pumping lemma consider a string.
so, by pumping lemma, takesuch thatconsider the following 2 possibilities:
Letbe the string that belongs to.. The pumping length of the string is 2. To satisfy the conditions of the pumping lemma,, ,.
Pump the middle part such that. For , the Y becomes. The string after pumping is.
The stringbecause the string that is accepted by the language should have equal number of 0 ’s, 1’s and 2’s. It is a contradiction. So, the pumping lemma is violated.
Therefore, is not a regular language.