6. Given that for every real number $x$ and $y$, the function $f(x)$ satisfies $f(x)+f(y)=f(x+y)+x y$. If $f(1)=m$, then the number of positive integer pairs $(m, n)$ that satisfy $f(n)=1998$ is $\qquad$.