Six. (25 points) Given
$$
f(x)=\lg (x+1)-\frac{1}{2} \log _{3} x .
$$
(1) Solve the equation: $f(x)=0$;
(2) Find the number of subsets of the set
$$
M=\left\{n \mid f\left(n^{2}-214 n-1998\right) \geqslant 0, n \in \mathbf{Z}\right\}
$$

(Li Tiehan, problem contributor)