In an assignment, I am given $E_K(M) = M + K \pmod {26}$. This formula is to be applied twice in a formal proof, so that we have $E_a(E_b(M)) =\ ...$. What I'm wondering is; is the original given formula equal to $(M + K)\pmod{26}$, or $M + (K \mod{26})$? This will obviously make a big difference down the line.
I do suspect the first ($(M + K)\pmod{26}$), however I want to be certain before I move forward in my proof.
NB: I did not tag this as homework as this is not actually part of the problem, rather just a clarification.