lcm(a,b,c)=lcm(lcm(a,b),c).