Which positive integers satisfies $a^{b^2} = b^a$

151 Views Asked by At

How one can find all integers satisfying $a\geq 1,b\geq 1,a^{b^2} = b^a$? I think that the solutions are $ (a,b)=(1, 1), (16, 2),(27, 3)$.