Hints: Sum of Fractions
Answer to Hint 1: Decreasing the denominator increases the fraction more (e.g.
For
Answer to Hint 2: For a fixed subarray, the optimal strategy leads to a formula for
So the answer for a given
Answer to Hint 1: Decreasing the denominator increases the fraction more (e.g.
For
Answer to Hint 2: For a fixed subarray, the optimal strategy leads to a formula for
So the answer for a given