crt(mod, rem)gf_crt(rem, mod)solve_congruence(*rem_mod_pairs) >>> from sympy.ntheory.modular import crt_cartesian
>>> from sympy.utilities.iterables import cartes
>>> rem = [[3, 5], [3, 7]]
>>> crt_cartesian(rem, [7, 11])
[3, 73, 47, 40]
>>> [(p%7, p%11) for p in _]
[(3, 3), (3, 7), (5, 3), (5, 7)]
>>> assert _ == list(cartes(*rem))