2024 SSMO Team Round Problems/Problem 1

Problem

How many ordered triples of positive integers $(a, b, c)$ satisfy the equation $2(a^b)^c+1=513$?

Solution