Problem

Source: 2022 NZMO - New Zealand Maths Olympiad Round 2 p1

Tags: number theory, Diophantine equation, diophantine



Find all integers $a, b$ such that $$a^2 + b = b^{2022}.$$