Problem

Source: 2017 Thailand October Camp 3.3

Tags: number theory, Divisibility, Bulgaria



Find all pairs of integers $m, n \geq 2$ such that $$n\mid 1+m^{3^n}+m^{2\cdot 3^n}.$$