I tried to solve this question, but realized I have no idea how to justify the intermingling of complex numbers and modular arithmetic. I know how to justify rational numbers, it is easy to realize you just treat the denominator as inverse. Is there any way to justify it?
Here is my (possibly flawed) solution:
Q: find $A \mod 101$ where $w = e^{2\pi i/10}$ and $z = e^{2\pi i/101}$: $$A=\prod _{a=0}^{9}\prod_{b=0}^{100}\prod_{c=0}^{100}(w^a+z^b+z^c)$$ For a moment consider only the last part of the product for some number: $$\prod_{c=0}^{100}(x+z^c)=\prod_{c=0}^{100}-(-x-z^c)=(-1)^{101}*\prod_{c=0}^{100}((-x)-z^c)=-((-x)^{101}-1)$$ The idea here is that the product all over roots of unity is equal $x^n-1$. By Fermat little theorem, $$-(-x^{101}-1) \equiv -(-x-1) \equiv > x+1 \pmod {101}$$ so, applying for each $w^a+z^b$: $$\prod _{a=0}^{9}\prod_{b=0}^{100}(w^a+z^b)+1$$ Again apply the same idea: $$\prod _{a=0}^{9}\prod_{b=0}^{100}(w^a+1)+z^b=\prod _{a=0}^{9}(-1)^{101}\prod_{b=0}^{100}(-w^a-1)-z^b=\prod _{a=0}^{9}-((-w^a-1)^{101}-1)\equiv \prod _{a=0}^{9}-(-w^a-1-1)= \prod _{a=0}^{9}w^a+2 \equiv 1023 \equiv 13 \mod 101$$ I'm not sure the last product is correct because I computed it with WA numerically (it give up on everything together and it is $3*10^{-12}i$ off). Edit: I computed it with all roots of unity in $C_{101}$ and got the same result.
My question is: Can we rigorously make sense of the above "solution" or complex numbers in modular arithmetic in general?