How to prove this language is not regular?

34 Views Asked by At

$L = \{a^mb^n \ | \ (m,n)=1\}$

How can i prove this language is not regular? I tried pumping lemma for $a^mb^{m+1}$ but didn't work. Any ideas?

1

There are 1 best solutions below

0
On

Hint: If $p$ is the pumping length and $m \geq p$, what can you say about $(mnp, n)$?