I've seen a lot couple of questions regarding the pumping lemma that are pretty similar to each other and this one is unfortunately not the exception. Most likely will be this question marked as a duplicate. But I guess there's no harm in asking.
I was trying to show using the pumping lemma that this language is not regular:
$$ { L = \{a^n b a^n \mid n \in{\mathbb N}\} } $$
I've tried the following, although I'm not sure of what I'm doing:
I've tried also to follow the example in this question
$$ w = xyz $$ $$ xyz = a^p b^p a^p $$ $$ |w| = 3p $$ $$ 3p > p $$
$$ |xy| \leq{p} $$
$$ |y| \geq{p} $$
but here is as far as I come. A thing that I don't understand is $b$ doesn't have an $n$ exponent like in $a$. Is it ok what I did by placing a $p$ exponent on $b$?
I would appreciate any help in this matter.