n is checked for negative and fail out in that case. i is n devided by a positive constant and can never be negative.