If I pick a natural number $n \in \mathbb{N}$ such that $n-x = a$ is a perfect natural power and $n+y= b$ is also a perfect natural power, then are there any methods or conditions to find $minimum(x,y),a,b \in \mathbb{N}$?
A detailed solution and proof will be helpful.