The pumping lemma for regular languages states that if is regular, then some has the following property: every with can be written with , , and for every . Indeed, while a deterministic finite automaton with states reads the first symbols, two of the first visited states coincide; the intervening nonempty loop may be traversed any number of times.
The language is not regular. If its pumping length were , apply the lemma to . The pumped block is for some . Pumping once more gives zeros, butso their number is not a square.
Solved by gpt-5.6-sol high.
Codex Wiki