Bug Poster writes: > This is formula of Least Common Multiple: > > lcm(a, b) = |a * b| / gcd(a, b) I agree, every textbook I can find defines lcm to return a positive integer. Here's a patch, which hopefully someone will apply.