The sequence of positive integers $a_1, a_2, \dots$ has the property that $\gcd(a_m, a_n) > 1$ if and only if $|m - n| = 1$. Find the sum of the four smallest possible values of $a_2$.

Let's think step by step and output the final answer within \boxed{}.
user