My understanding was that, from the Weingarten equations, mean curvature $H$ of a surface in $\mathbb{R}^3$ satisfied
$$2H = \operatorname{tr}(g^{-1} b),$$
where $g$ is the first fundamental form (metric of the surface) and $b$ is the second fundamental form.
However, on Wikipedia at the article on Mean Curvature, I find the following sentence:
More abstractly, the mean curvature is the trace of the second fundamental form divided by n (or equivalently, the shape operator).
Which asserts that $$2H = \operatorname{tr}(b).$$ Which is it? Are the two expressions somehow equal?