$(a_1^{b_1} \cdot a_2^{b_2} \cdots a_n^{b_n}) \;\; \text{mod} \;\; (c_1^{d_1} \cdot c_2^{d_2} \cdots c_m^{d_m})$
Would there be a way to find the modulo (preferably in the form of a prime number product; or the worst case value). I am not allowed to transform these products into integers, I have to work with the products... $a$ and $c$ are prime numbers and $b$ and $d$ are integers $> 0$. Products can be of different sizes (number of terms) Thank you