Why use i + 1 as the multiplier instead of the length of the array?