gcd and lcm added