Problem

Source: Baltic Way 2014, Problem 19

Tags: number theory, greatest common divisor, number theory proposed



Let $m$ and $n$ be relatively prime positive integers. Determine all possible values of \[\gcd(2^m - 2^n, 2^{m^2+mn+n^2}- 1).\]