Flashcards · 5 cards

Modular arithmetic

Say the answer to yourself, then check. Cards you know come back less and less often; cards you don't come back tomorrow.

  1. Rule

    What does a≡r(modn)a \equiv r \pmod n mean?

    Answer

    a÷na \div n leaves remainder rr. For example 23≡2(mod7)23 \equiv 2 \pmod 7, because 23=3×7+223 = 3 \times 7 + 2.

    0123438 = 7 × 5 + 37 full turns, then 3 more38 ≡ 3 (mod 5)
    A modulo-5 clockOnly the remainder matters: where you stop
  2. Know it

    Which answers are allowed in modulo 7?

    Answer

    Only 0,1,2,…,60, 1, 2, \dots, 6. For a negative number, add 7 until it is in range: −3≡4(mod7)-3 \equiv 4 \pmod 7.

  3. Know it

    Work out 5×6+45 \times 6 + 4 in modulo 7.

    Answer

    Work it out as usual, then take the remainder on dividing by 7: 34=4×7+634 = 4 \times 7 + 6, so the answer is 6.

  4. Know it

    How do you solve 3x≡2(mod5)3x \equiv 2 \pmod 5?

    Answer

    Try each value from 0 to 4 and keep the one that works: 3×4=12≡23 \times 4 = 12 \equiv 2, so x=4x = 4.

  5. Which method?

    WAEC 2019 · Paper 2 · Q1 (a)

    Draw a table for multiplication ⊗\otimes in modulo 8 on the set T={2,3,5,7}T = \{2, 3, 5, 7\}.

    How do you fill each cell of the table?

    Answer

    Multiply the two numbers, then take the remainder on dividing by 8. For example 5⊗7=35=4×8+35 \otimes 7 = 35 = 4 \times 8 + 3, so that cell is 3.