Calculate the least common multiple.