found lcm of denominator
lcm_of_deno = findLcm ( arr , size ) NEW_LINE result = [ 0 for i in range ( 2 ) ] NEW_LINE result [ 0 ] = hcf_of_num NEW_LINE result [ 1 ] = lcm_of_deno NEW_LINE i = int ( result [ 0 ] / 2 ) NEW_LINE while ( i > 1 ) : NEW_LINE INDENT if ( ( result [ 1 ] % i == 0 ) and ( result [ 0 ] % i == 0 ) ) : NEW_LINE INDENT result [ 1 ] = int ( result [ 1 ] / i ) NEW_LINE result [ 0 ] = ( result [ 0 ] / i ) NEW_LINE DEDENT DEDENT