f (n) = n (n+1) where n is an integer solve the equation f (n) = 0
There are two possibilities: n = 0 or n = -1
.