• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Modular math?

alexjohnson16

Platinum Member
Ran across a problem on one of my quizzes that says to figure out (-9x12)(mod 4). Can someone show me how to do this? Or show me another problem that shows how to do it?

I searched the notes and can't find anything at all.
 
think about 14%5..

which is 14 mod 5, which is basically integer division, where you take the remainder, instead of the quotient.

so.. 14%5 is like 14/5 = 2 REMAINDER 4.. you keep the remainder 4.. answering 4. 🙂
 
Do you know how to do mods in general? Like 4 mod 3? If so, then you can reduce the problem above by rewriting it as:

(-9x12)mod4 to (-9x3x4)mod4 to ...... the answer. 🙂

 
Back
Top