for all even integers n , h ( n ) is defined to be the sum of the even integers between 6 and n , inclusive . what is the value of h ( 18 ) / h ( 10 ) ?
"concept : when terms are in arithmetic progression ( a . p . ) i . e . terms are equally spaced then mean = median = ( first + last ) / 2 and sum = mean * number of terms h ( 18 ) = [ ( 6 + 18 ) / 2 ] * 7 = 84 h ( 10 ) = ( 6 + 10 ) / 2 ] * 3 = 24 h ( 18 ) / h ( 10 ) = ( 84 ) / ( 24 ) ~ 4 answer : b"
divide(divide(multiply(add(18, 6), add(divide(subtract(18, 6), const_2), const_1)), const_2), divide(multiply(add(divide(subtract(10, 6), const_2), const_1), add(6, 10)), const_2))