Perhaps drop the (N/2 + 1). It adds little value but could be misunderstood. (Integer division is (only) implied. One might read it as defining "half" instead of "the minimum value that is more than half".)