Given two positive integers $a,b$, and an odd prime $p$, I want to know whether the number of solutions to the following equation is finite:
$X^2=a+bp^{Y}$
where $X,Y$ are variables and are integers.
I checked with google, and in the case $b=1$ this seems to follow from a result of A Baker on logrithmetic forms (1966).