Lời giải:
Ta có:
$a^2=3+\sqrt{5+2\sqrt{3}}+3-\sqrt{5+2\sqrt{3}}+2\sqrt{(3+\sqrt{5+2\sqrt{3}})(3-\sqrt{5+2\sqrt{3}})}$
$=6+2\sqrt{3^2-(5+2\sqrt{3})}=6+2\sqrt{4-2\sqrt{3}}=6+2\sqrt{3+1-2\sqrt{3}}$
$=6+2\sqrt{(\sqrt{3}-1)^2}=6+2(\sqrt{3}-1)=4+2\sqrt{3}=(\sqrt{3}+1)^2$
$\Rightarrow a=\sqrt{3}+1$ (do $a\geq 0$)
Do đó:
$a^2-2a-2=4+2\sqrt{3}-2(\sqrt{3}+1)-2=0$ (đpcm)