Problem

Source: Estonia IMO TST 2016 p2

Tags: number theory, Diophantine equation, diophantine



Let $p$ be a prime number. Find all triples $(a, b, c)$ of integers (not necessarily positive) such that $a^bb^cc^a = p$.