IMO Shortlist 2010 problem N2
Find all pairs

of nonnegative integers for which

Proposed by Angelo Di Pasquale, Australia
%V0
Find all pairs $(m,n)$ of nonnegative integers for which $$m^2 + 2 \cdot 3^n = m\left(2^{n+1} - 1\right).$$
Proposed by Angelo Di Pasquale, Australia
Source: Međunarodna matematička olimpijada, shortlist 2010