Binary operations, modular arithmetic & logical reasoning
JAMBWAECNECO
What the syllabus asks
JAMB: Number and numeration: modular arithmetic; Algebra: binary operations; Sets and logic: logical reasoning
WAEC: Number and numeration: modular arithmetic (addition, subtraction, multiplication, solving simple equations, application to daily life); binary operations (closure, commutativity, associativity, identity, inverse, distributivity); logical reasoning (simple and compound statements, negation, truth tables, implication, valid arguments)
NECO: Number and numeration: modular arithmetic (addition, subtraction, multiplication, solving simple equations, application to daily life); binary operations (closure, commutativity, associativity, identity, inverse, distributivity); logical reasoning (simple and compound statements, negation, truth tables, implication, valid arguments)
What you will learn
- Reduce numbers modulo n and perform modular addition, subtraction and multiplication.
- Solve simple modular equations and apply them to days, clocks and cycles.
- Evaluate binary operations defined by formulas and by tables.
- Test closure, commutativity, associativity and distributivity.
- Find identity elements and inverses.
- Write truth tables, form converse and contrapositive, and judge simple arguments.
Key points
- a mod n is the remainder 0 to n − 1; add n to negative numbers to bring them into range.
- Calculate normally, then reduce; reduce powers step by step.
- Solve modular equations by testing every value from 0 to n − 1.
- Binary operation: substitute exactly in order; do inner brackets first.
- Closure, commutativity, associativity: prove with algebra, disprove with one counterexample.
- Identity: solve a ∗ e = a for a constant e; inverse: solve a ∗ b = e.
- In tables: identity row repeats the header; symmetry means commutative.
- Logic: p → q false only for T → F; equivalent to its contrapositive, not its converse.
Start here: Remainders and the meaning of mod
A clock face resets after 12. If it is 9 o’clock now, 5 hours later it is 2 o’clock, not 14 o’clock. Days of the week reset after 7. This "wrap-around" counting is modular arithmetic.
a ≡ b (mod n) means a and b leave the same remainder, i.e. n divides a − b.
Find (a) 47 mod 5; (b) 23 mod 7; (c) 60 mod 12.
- (a) 47 = 9 × 5 + 2 → 2.
- (b) 23 = 3 × 7 + 2 → 2.
- (c) 60 = 5 × 12 + 0 → 0.
Find −3 mod 7.
- We need a remainder between 0 and 6.
- Add 7 until it is in range: −3 + 7 = 4.
- Check: −3 = (−1) × 7 + 4 ✓.
So in mod 7, the "numbers" are just 0, 1, 2, 3, 4, 5, 6, and every integer is equivalent to one of them.
Show solution
Continue this lesson in the free app →
Practice questions
Show worked answer
Show worked answer
Show worked answer
Show worked answer
Show worked answer
Key words
- Modulo (mod)
- The remainder after division by a fixed number n.
- Congruent
- a ≡ b (mod n) means a and b leave the same remainder on division by n.
- Binary operation
- A rule combining two elements of a set to give one element.
- Closure
- The result of the operation is always in the set.
- Commutative
- Order does not matter: a∗b = b∗a.
- Associative
- Grouping does not matter: (a∗b)∗c = a∗(b∗c).
- Identity element
- e such that a∗e = e∗a = a for all a.
- Inverse
- a⁻¹ such that a∗a⁻¹ = a⁻¹∗a = e.
- Statement (proposition)
- A sentence that is either true or false, not both.
- Negation
- ~p: "not p", the opposite truth value.
- Conjunction / disjunction
- p ∧ q (and) / p ∨ q (or).
- Contrapositive
- For p → q, the statement ~q → ~p.
The Cara's Tips app teaches every topic from the very basics, with quick checks, worked examples and exam practice. It works offline.
Open this lesson in the free appDownload for Android