Added method to determine smallest divisible number