Updated sum-of-array-plus-one