edited by
347 views

1 Answer

0 votes
0 votes
String length $\left | w \right |$ which is divided by 3 and not divided by 2 are not accepted like 3,9,15,21

$S \rightarrow aA \mid \lambda$

$A \rightarrow aB \mid \lambda$

$B \rightarrow aC \mid \lambda$

$C \rightarrow aD$

$D \rightarrow aE \mid \lambda$

$E \rightarrow aS \mid \lambda$

Related questions

0 votes
0 votes
0 answers
1
1 votes
1 votes
3 answers
3
3 votes
3 votes
1 answer
4