Here from the question the examples are given as,,not allow leading zeros and representation of number.
Let be the number represented by the base-three numeral z. Since the set of numbers,
is represented in binary by the regular expression if we prove that,
is not regular.
Use the pumping lemma for regular languages. Suppose L is regular and is a word in L longer than the pumping length L . As such,
By applying pumping lemma to this grammar this grammar does not follow the property of pumping lemma and it is proved that this given language and its stringis not regular language.