a , b , c can do a work in 15 , 20,45 days respectively . they get rs 500 for their work . what is the share of a ?
lcm = 180 share of a = ( lcm / a x total amount ) / lcm / a + lcm / b + lcm / c = ( 180 / 15 ) / ( 180 / 15 + 180 / 20 + 180 / 45 ) = ( 12 / 25 ) * 500 = rs . 240 answer : a
multiply(500, divide(inverse(15), add(add(inverse(multiply(const_2, const_10)), inverse(add(multiply(const_2, const_10), multiply(const_100, const_0_25)))), inverse(15))))