Problem

Source: Baltic Way 2016, Problem 3

Tags: number theory, Diophantine equation



For which integers $n = 1, \ldots , 6$ does the equation $$a^n + b^n = c^n + n$$have a solution in integers?