on a partly cloudy day , derek decides to walk back from work . when it is sunny , he walks at a speed of s miles / hr ( s is an integer ) and when it gets cloudy , he increases his speed to ( s + 1 ) miles / hr . if his average speed for the entire distance is 2.8 miles / hr , what fraction r of the total distance did he cover while the sun was shining on him ?
if s is an integer and we know that the average speed is 2.8 , s must be = 2 . that meanss + 1 = 3 . this implies that the ratio of time for s = 2 is 1 / 4 of the total time . the formula for distance / rate is d = rt . . . so the distance travelled when s = 2 is 2 t . the distance travelled for s + 1 = 3 is 3 * 4 t or 12 t . therefore , total distance covered while the sun was shining over him is r = 2 / 14 = 1 / 7 . answer : e
subtract(divide(lcm(const_2, const_3), 2.8), const_2)