from .math_gcd_lcm_gcd import gcd from .math_gcd_lcm_lcm import lcm from .math_gcd_lcm_types import GcdLcm def gcd_lcm(a: int, b: int) -> GcdLcm: """Greatest common divisor and least common multiple of two integers. Both are returned together because a caller needing one nearly always needs the other (common denominators, repeating schedules). """ return GcdLcm(gcd=gcd(a, b), lcm=lcm(a, b))