Let $p,N$ be positive integers with $N$ divides $p$. Does for every integer $X$, $[X\pmod{N}]\pmod{p}=X\pmod{p}$?
This question is similar to [1] - I consider it different due to $N$ now dividing $p$ instead.
I am trying to simplify the expression: $$\phi(n)=[(4n)*((4n)^{-1}\pmod{65537})]\pmod{65537*4*n}$$ where $\phi(n)$ is Euler's totient function, and I'm thinking of using the result above for simplifying the RHS.
[The particular example using 65537 I have derived using congruences on the RSA system and application of the CRT.]
Please state what the correct result is and why it's correct. [1][Modulo arithmetic (modulo of modulo)