Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2019/ii/paper-1/4h/b/iii/solution

The equations and are equivalent to
for nonnegative integers . Hence the language is
which is the nested two-pair count language generated by
It is therefore context-free.

New to topics? Read the docs here!