Given an array of length , consisting of distinct positive integers. Compute
Here, denotes rounded down to the nearest integer.
Thus, it is necessary to compute the sum of the results of integer division of the maximum by the minimum over all subarrays of the array .