0

Does $a^n b^m$ with $n, m \ge 0$ and $m \ne n$ fail the pumping lemma?

I know it is not regular and that this can be demonstrated by using closure properties, but does the language pass the pumping lemma?

It seems to me that for any p I can pump either a or b (depending on which has a greater repetition count) without making n = m. But in an exam I am taking the answer key says it does not satisfy the pumping lemma.

Rodrigo Stv
  • 195
  • 1
  • 1
  • 7

0 Answers0