2. Find all triples of positive integers $(a, b, c)$ such that
$$
a^{2}+2^{b+1}=3^{c} \text {. }
$$
Using congruence analysis and prime factor analysis, we get
$$
(a, b, c)=(1,2,2),(7,4,4) \text {. }
$$