Problem

Source: Chinese TST 2007 6th quiz P1

Tags: modular arithmetic, number theory proposed, number theory



Find all the pairs of positive integers $ (a,b)$ such that $ a^2 + b - 1$ is a power of prime number $ ; a^2 + b + 1$ can divide $ b^2 - a^3 - 1,$ but it can't divide $ (a + b - 1)^2.$