# n-factor for ammonium nitrite?

The given reaction is $$\ce{NH4NO2 \rightarrow N2 + 2H2O}$$

The way I did it was $$\ce{NH4+ \rightarrow \frac{1}{2} N2 + 4H+ + 3e-}$$ and $$\ce{NO2- +3e- +4H+ \rightarrow \frac{1}{2} N2 + 2H2O}$$ Therefore n factor is 3