Factor,
n(n-1)=0
Whenver the product of two number is zero one of them must be zero (if you want to be cool then say the reals have no zero divisors).
Thus,
n=0
n-1=0
Are the only possible solutions,
Thus,
n=0,1
But you need to check, and indeed they are solutions.