727 views
2 votes
2 votes
Identify weather the following language is regular?

∀m,n ∈ N

1)a^m b^n | LCM(m,n)=0

2)a^m b^n | LCM(m,n)=1

3)a^m b^n | LCM(m,n)<100

4)a^m b^n | GCD(m,n)=1

1 Answer

Best answer
4 votes
4 votes

2: LCM(M.N) =1 iff m=1,n=1   --> Regular

3: LCM(M,N)<100 for finite number of m & n  , number of strings becomes finite -->Regular

4:GCD(M,N)=1 , their could be infinite  combination of m & n which are relatively prime to each other -->Non Regular

selected by

Related questions

0 votes
0 votes
2 answers
1
anupamsworld asked Aug 29, 2022
606 views
Which of the following is/are Regular?A] $\left \{ XWYW^{R} \space\ | \space\ W,X,Y \in \left \{ a,b \right \}^{+} \right \}$B] $\left \{ WXW^{R}Y \space\ | \space\ W,X,Y...
1 votes
1 votes
1 answer
3
Na462 asked Sep 11, 2018
1,588 views
Is Language L = {0(n+m) 1(k+l) | m = l, and m,n,k,l ≥ 1 } a regular language ? explain