Nonnegative solutions of a nonlinear recurrence