Suppose he had x friends. Then, `100/x - 100/(x + 5) = 1` `or 1/x - 1/(x + 5) = 1/100` `(x + 5 - x)/(x(x + 5)) = 1/100` `or x^2 + 5x - 500 = 0` `or (x + 25) (x - 20) = 0` `:. x = 20`.