Define $f\left(n\right)=\textrm{LCM}\left(1,2,\ldots,n\right)$. Determine the smallest positive integer $a$ such that $f\left(a\right)=f\left(a+2\right)$.

[i]2017 CCA Math Bonanza Lightning Round #2.4[/i]