# Pairs Satisfying a Cubic

$$n$$ and $$m$$ are positive integers that satisfy $$n^3 + 2n^2 = m^2$$. If $$1 \leq n \leq 1000$$, how many possible ordered pairs of $$(n,m)$$ are there?

×