Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is 7 mod 3?
Think about how many times 3 fits into 7.
Is 10 ≡ 4 mod 6 true or false?
Calculate both `10 mod 6` and `4 mod 6`.
What is the result of 9 mod 4?
Consider how many times 4 fits into 9.
Is the operation a / b well-defined in modular arithmetic?
Recall our discussion on modular operations!
Given a = 3, b = 20, and N = 5, compute 3^20 mod 5 using the square and multiply method.
Break down your steps and check accumulated powers.
Design an algorithm to compute mod 2^n efficiently given an n-bit integer.
Focus on which bits are `1` in your binary number.
6 more questions in this section. Enroll free to practise them all.
Enroll free