Use LCM of 1 when handling an empty set.