Problem

Source: IMO 1997, Problem 5, IMO Shortlist 1997, Q17

Tags: number theory, equation, IMO, IMO 1997, prime factorization



Find all pairs $ (a,b)$ of positive integers that satisfy the equation: $ a^{b^2} = b^a$.