Question 163Find all pairs $(p,q)$, $p,q \in \mathbb{N}$, such that $$ (p+1)^{p-1} + (p-1)^{p+1} = q^q. $$