Let $K=\mathbb{Q}(a)$ where $a^3=d$ where $d\neq 0, \pm 1$ is a square free integer. Show that $\Delta (1, a, a^2)=-27d^2$. By calculating the traces of $\theta, a\theta, a^2\theta$ where $\theta=u+va+wa^2$ with $u,v,w\in \mathbb{Q}$ and the norm of $\theta$, show that the ring of integers $\mathcal{O}_K\subset \frac{1}{3}\mathbb{Z}[a]$.
So far I have calculated the the traces of $\theta, a\theta, a^2\theta$ are, respectively, $3u, 3wd, 3vd$ and the norm of $\theta$ is $u^3+v^3d+w^3d^2-3uvwd$. But I couldn't proceed.
I want to show that $\mathbb{Z}[a]$ has index 3 in $\mathcal{O}_K$. I think the following theorem should be useful.
Let $K$ be a number field. If $x_1, \dots, x_n\in \mathcal{O}_K$ is a basis for $K$ over $\mathbb{Q}$ and $M=x_1\mathbb{Z}+\dots+x_n\mathbb{Z}$ then $\Delta (x_1, \dots, x_n)=(\mathcal{O}_K:M)^2D_K$ where $(\mathcal{O}_K:M)$ denotes the index of a subgroup and $D_K$ is the discriminant of the number field $K$.