Question 24Find all pairs $(m, n)$ of nonnegative integers for which $$ m^{2}+2 \cdot 3^{n}=m\left(2^{n+1}-1\right) $$