Hello, I was just wondering if anyone knows how to use the mathematical modulus operator ( 42 (mod 4) =x) in an environment that only has a computer science modulus ( 45 mod 43 =x). I have deduced that if x(mod y)=z then: z mod y = x..........................................................10 mod 3 = 1 z / y = l + x / y......................................................10 / 3 = 3 + 1 / 3 z = l * y + x...........................................................10=3 * 3 + 1 which really doesn't narrow it down because now we must know l, which is z/y-x/y, so: z / y = (z - x) / y + x / y z = z - x + x z = z YAY! we have deduced that z is equal to itself! Seriously though, if you know something that I don't, please tell me.
Yes, that is the computer science version (which I have access to), but I need the other one, the one used more in mathematics. % is not used for modulus (either one...) in autoit3, but it does have the mod($a, $b) fnction which is the computer modulus. But thanks for the % tidbit, I didn't know that.
Later, but unable to double post: 3(mod 4) will return a set including 7, 11, 15, 19, etc because 7 mod 4 is 3 11 mod 4 is 3 15 mod 4 is 3 so 3(mod 4) is 4n+3 for any real integer n and x(mod y) is yn+x