Problem

Source: 2016 Peru Cono Sur TST P5

Tags: number theory



Find all positive integers $n$ for which $2^n + 2021n$ is a perfect square.