I want to show that on a 3D Riemannian manifold $\mathcal{M}$ with metric tensor $g_{ij}\mathrm{d}x^i\otimes\mathrm{d}x^j$, the divergence of a vector field $\mathbf{A}$ is given by
\begin{equation} \mathrm{div}\mathbf{A}=\frac{1}{\sqrt{\lvert g\rvert}}\frac{\partial}{\partial x^i}\left(\sqrt{\lvert g\rvert} A^i\right). \end{equation}
The approach I am taking is to apply $*d*$ to the one-form $\tilde{A}=A_i\mathrm{d}x^i$. My calculations are as below:
\begin{align} *\mathrm{d}x^i&=\frac{1}{2}\sqrt{\lvert g\rvert}g^{ik}\epsilon_{klm}\mathrm{d}x^l\wedge\mathrm{d}x^m,\\ \mathrm{d}*\tilde{A}&=\frac{1}{2}\frac{\partial}{\partial x^n}\left( A_i\sqrt{\lvert g\rvert}g^{ik}\right)\epsilon_{klm}\mathrm{d}x^n\wedge\mathrm{d}x^l\wedge\mathrm{d}x^m,\\ *\mathrm{d}*\tilde{A}&=\frac{1}{2}\frac{\partial}{\partial x^n}\left( A_i\sqrt{\lvert g\rvert}g^{ik}\right)\epsilon_{klm}*\left(\mathrm{d}x^n\wedge\mathrm{d}x^l\wedge\mathrm{d}x^m\right)\\ &=\frac{1}{2}\frac{\partial}{\partial x^n}\left( A_i\sqrt{\lvert g\rvert}g^{ik}\right)\epsilon_{klm}\epsilon^{nlm}\sqrt{\lvert g\rvert}\\ &=\frac{\partial}{\partial x^k}\left( A^k\sqrt{\lvert g\rvert}\right)\sqrt{\lvert g\rvert}. \end{align}
My answer is nearly that of what is correct however, I cannot find my mistake which resulted in my being unable to reproduce the one over root factor. Can someone point out where did I went wrong?
Be careful. The Levi-Civita symbols $\epsilon_{abc}$ defined by $\epsilon_{123}=1=\epsilon^{123}$ and being completely antisymmetric $$ \begin{align} \epsilon_{abc} &= \epsilon_{[abc]} & \epsilon^{abc} &= \epsilon^{[abc]} \end{align} $$ do not obey the usual lowering-and-raising "rules". More specifically, they gain a factor of $1/|g|$ when you raise the indices and a factor of $|g|$ when you lower them: $$ \begin{align} g^{ai}g^{bj}g^{ck}\epsilon_{abc} &= \frac{1}{|g|}\epsilon^{abc} & g_{ai}g_{bj}g_{ck}\epsilon^{abc} &= |g|\epsilon_{abc} \end{align} $$ so that $$ \begin{align} \star(\mathrm{d}x^n\wedge\mathrm{d}x^l\wedge\mathrm{d}x^m) &=\sqrt{|g|}g^{na}g^{lb}g^{mc}\epsilon_{abc}\\ &=\frac{1}{\sqrt{|g|}}\epsilon^{nlm} \end{align} $$ as you needed.