What happens if N is zero? What should be the logic then?