Observe the Python behavior of the % operator (the Python notation for mod) that’s shown in Figure 2.13. The first two lines (3 mod 5 = 3 and −3 mod 5 = 2) are completely consistent with the definition that we gave for mod (Definition 2.9), including its use for n mod k when n is negative (as in Example 2.6). But we haven’t defined what n mod k means for k <>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here