Rewriting [tex]z[/tex] in polar form makes this trivial.
[tex]z=|z|e^{i\mathrm{arg}(z)}[/tex]
We have
[tex]|z|=\sqrt{(-1)^2+(-\sqrt3)^2}=2[/tex]
[tex]\mathrm{arg}(z)=\tan^{-1}(-1,-\sqrt3)=-\dfrac{2\pi}3[/tex]
(not to be confused with the standard inverse tangent function [tex]\tan^{-1}x[/tex]. Here [tex]\tan^{-1}(x,y)[/tex] is the inverse tangent function that takes into account position in the coordinate plane; look up "atan2" for more information)
So we have
[tex]z=-1-\sqrt3\,i=2e^{-2\pi/3\,i}[/tex]
Then
[tex]z^6=2^6\left(e^{-2\pi/3\,i}\right)^6=64e^{-4\pi\,i}=64[/tex]
so that [tex]a=64[/tex] and [tex]b=0[/tex].