Answer on Question#38651 – Math - Other
Let be the pumping length guaranteed by the pumping lemma (for context free languages). Then we choose such that and are both prime. Then clearly .
By the pumping lemma we can divide such that and
1.
2.
3. for all
For this language we get three similar cases, and one trivial case. The trivial case is where either or contains both and , in which case doesn't have the correct ordering, and thus .
The nontrivial cases:
1. and are both strings of , then when we pump we get where . Then if , however the modular equation has the solution , and as is prime we are guaranteed that exists. Therefore any element of the residue class would give us . Ergo .
2. and are both strings of , but this case is just the symmetric case to case 1, so we derive a contradiction in this case too.
3. and for some and with . Then when we pump we get . Now if has no solution, but we can see from here, rearranging just gives , and as before this has solution . So again we derive a contradiction.
Thus there is at least one string in that cannot be divided as per the pumping lemma and still have all pumping results remain in . Therefore is not context free.
Answer: C.