Problem

Source: Stars of Mathematics 2022, J1

Tags: number theory



Find all positive integers $n$, such that there exist positive integers $a,b$, such that $a+2^b=n^{2022}$ and $a^2+4^b=n^{2023}$.