Given the following function, f:
f (a b c d e) = (5*a + 4*b + 3*c + 2*b + 1*a) modulo 11
How can I distribute the modulo operation?
In short, How can I compute f without computing (5*a + 4*b + 3*c + 2*b + 1*a) first, and then mod-ing by 11.
Given the following function, f:
f (a b c d e) = (5*a + 4*b + 3*c + 2*b + 1*a) modulo 11
How can I distribute the modulo operation?
In short, How can I compute f without computing (5*a + 4*b + 3*c + 2*b + 1*a) first, and then mod-ing by 11.