I am studying for my next midterm for formal languages and finite state machines.
I am stuck with this problem.
Determine whether this language is context free or not.
The language is :
$$
L = \{ a^n b^j | n \leq j^2 \}
$$
I tried designing a PDA for it but to no avail because I cant keep track of when j exceed square root of n using the stack.
So my assumption is that it is not context free.
However, I am not that good with the pumping lemma.
This is what I tried:
Assume L is context free.
Let $ w=a^mb^m $ with w in L.
By the pumping lemma w can be decomposed as
w = uvxyz with |vxy| <= m and |vy|>=1 such that $uv^ixy^iz$ is in L with i>=0
case 1
aa...a ab...b
uvxy z
Now, I have a problem I don't know how to chose i so the resulting string is not in L. Any help would be appreciated.