Problem

Source: Czech-Polish-Slovak Junior Match 2012, Team p5 CPSJ

Tags: Diophantine equation, diophantine, number theory



Find all triplets $(a, k, m)$ of positive integers that satisfy the equation $k + a^k = m + 2a^m$.