Problem

Source: Baltic Way 2002

Tags: number theory, greatest common divisor, quadratics, number theory unsolved



Find all nonnegative integers $m$ such that \[a_m=(2^{2m+1})^2+1 \] is divisible by at most two different primes.