I think Diophantine equations are in Number Theory...

In any event. I am trying to solve for n and p, where a is a constant positive integer.

I wasn't able to figure out how to do it by hand and I couldn't find a way to get W|A to understand the "a".

Any help is appreciated.

-Dan