Different ways gives different results - solving $\tan 2a = \sqrt 3$
Case 1).
$$ \tan 2a = \sqrt 3 =\tan(\frac{\pi}{3}) $$
$$2a = n\pi + \frac{\pi}{3} $$
$$a = \frac{n\pi}{2} + \frac{\pi}{6},\qquad n \in\mathbb{Z} $$
Case 2)
$$ \dfrac{2\tan a}{1-\tan^2 a} = \sqrt 3$$ Solving above equation gives $ \tan a = \dfrac{1}{\sqrt 3}$ or $-\sqrt 3 $
Thus either
$$ a = n\pi+ \frac{\pi}{6},\qquad n \in \mathbb{Z} $$
Or $$ a = m\pi - \frac{\pi}{3},\qquad m\in\mathbb{Z} $$
Or either I did something wrong or both these results are same.
If it's the later, I tried a lot to convert one form to other by adding the case 2 results. But that doesn't work.
$n\pi/2+\pi/6=m\pi+\pi/6\iff n=2m$
$n\pi/2+\pi/6=m\pi-\pi/3\iff3n+1=6m-2\iff n=2m-1$