Problem

Source: Mexico National Olympiad Mock Exam 2019 P2

Tags: number theory, Divisibility, algebra



Find all pairs of positive integers $(m, n)$ such that $m^2-mn+n^2+1$ divides both numbers $3^{m+n}+(m+n)!$ and $3^{m^3+n^3}+m+n$. Proposed by Dorlir Ahmeti