$\Large n^x=n^2x$

How many ordered pairs $$(n,x)$$ are there satisfying above equation for $$n,x \in \mathbb{Z}-\{0\}$$?

Inspiration

×