Docsity

Number Theory: Divisibility, Prime Numbers & Modular Arithmetic – Study Notes, Summaries of Mathematics

Toggle sidebar
bg1
NUMBER THEORY — STUDY NOTES PAGE 1 OF 5 — FUNDAMENTALS
Number Theory: Divisibility, Prime Numbers & Modular Arithmetic
Study Notes for High School & College Mathematics
1. Fundamentals of Number Theory
What is Number Theory?
Number Theory is the branch of mathematics that studies whole
numbers and the relationships between them — especially
divisibility, prime numbers, and patterns in remainders. It is the
foundation behind codes, calendars and modern cryptography.
Number sets
• Natural numbers — the counting numbers 1, 2, 3, …
• Whole numbers — natural numbers together with 0: 0, 1, 2,
3, …
• Integers — whole numbers and their negatives: …, −2, −1,
0, 1, 2, …
• Rational numbers — can be written as p/q with p, q
integers and q ≠ 0.
• Irrational numbers — cannot be written as a fraction;
decimals never terminate or repeat.
Each number set sits inside the next — every natural number is also a
whole number, integer, and rational number.
Prime and composite numbers
A prime number is a whole number greater than 1 with exactly two factors: 1 and itself (e.g. 2, 3, 5, 7, 11). A composite number
has more than two factors (e.g. 4, 6, 8, 9). 1 is neither prime nor composite — it has only one factor.
Factors, multiples, and divisibility rules
A factor of n divides n exactly (no remainder). A multiple of n is n times a whole number. Quick divisibility tests save time without
doing full division:
Divisible by 2 3 5 9 10
Rule Last digit is 0,2,4,6,8 Digit sum divisible by
3Last digit is 0 or 5 Digit sum divisible by
9Last digit is 0
Prime factorization
Writing a number as a product of only prime numbers is its prime factorization. Every composite number can be broken down this
way, usually with a factor tree: split the number into any two factors, then keep splitting composite branches until every branch
ends in a prime.
Comparing the number sets
Set Includes Example Not included
Natural 1, 2, 3, … 7, 42 0, negatives, fractions
Whole 0, 1, 2, 3, … 0, 15 negatives, fractions
Integer …,−1, 0, 1, … −6, 0, 9 fractions, decimals
Rational p/q form −3/4, 0.6, 5 √2, π
Irrational non-repeating decimals √2, π any p/q form
Worked Examples
Example 1 — Classify −5, 0, 3/4, √7 and 9 into number sets
−5: integer and rational (not natural/whole, since it's negative).
0: whole number, integer, and rational.
3/4: rational only (not an integer).
√7: irrational — 7 is not a perfect square, so √7 never terminates or repeats.
Answer: −5 (integer, rational); 0 (whole, integer, rational); 3/4 (rational); √7 (irrational); 9 (natural, whole, integer,
rational).
Example 2 — Test 273 for divisibility by 2, 3, 5, 9 and 10
Last digit is 3 (odd, not 0 or 5) → not divisible by 2, 5, or 10.
Digit sum: 2+7+3 = 12. 12 is divisible by 3 but not by 9.
Answer: 273 is divisible by 3 only (273 ÷ 3 = 91); not by 2, 5, 9, or 10.
Example 3 — Find the prime factorization of 360
360 = 2 × 180 = 2 × 2 × 90 = 2 × 2 × 2 × 45 = 2³ × 3 × 15 = 2³ × 3 × 3 × 5
Check: 8 × 9 × 5 = 360 ✓
Answer: 360 = 2³ × 3² × 5.
pf3
pf4
pf5

Partial preview of the text

Download Number Theory: Divisibility, Prime Numbers & Modular Arithmetic – Study Notes and more Summaries Mathematics in PDF only on Docsity!

NUMBER THEORY — STUDY NOTES PAGE 1 OF 5 — FUNDAMENTALS

Number Theory: Divisibility, Prime Numbers & Modular Arithmetic

Study Notes for High School & College Mathematics

1. Fundamentals of Number Theory

What is Number Theory?

Number Theory is the branch of mathematics that studies whole numbers and the relationships between them — especially divisibility, prime numbers, and patterns in remainders. It is the foundation behind codes, calendars and modern cryptography.

Number sets

  • Natural numbers — the counting numbers 1, 2, 3, …
  • Whole numbers — natural numbers together with 0: 0, 1, 2, 3, …
  • Integers — whole numbers and their negatives: …, −2, −1, 0, 1, 2, …
  • Rational numbers — can be written as p/q with p, q integers and q ≠ 0.
  • Irrational numbers — cannot be written as a fraction; decimals never terminate or repeat.

Each number set sits inside the next — every natural number is also a whole number, integer, and rational number.

Prime and composite numbers

A prime number is a whole number greater than 1 with exactly two factors: 1 and itself (e.g. 2, 3, 5, 7, 11). A composite number has more than two factors (e.g. 4, 6, 8, 9). 1 is neither prime nor composite — it has only one factor.

Factors, multiples, and divisibility rules

A factor of n divides n exactly (no remainder). A multiple of n is n times a whole number. Quick divisibility tests save time without doing full division:

Divisible by 2 3 5 9 10

Rule Last digit is 0,2,4,6,8 Digit sum divisible by 3 Last digit is 0 or 5 Digit sum divisible by 9 Last digit is 0

Prime factorization

Writing a number as a product of only prime numbers is its prime factorization. Every composite number can be broken down this way, usually with a factor tree : split the number into any two factors, then keep splitting composite branches until every branch ends in a prime.

Comparing the number sets

Set Includes Example Not included Natural 1, 2, 3, … 7, 42 0, negatives, fractions Whole 0, 1, 2, 3, … 0, 15 negatives, fractions Integer …,−1, 0, 1, … −6, 0, 9 fractions, decimals Rational p/q form −3/4, 0.6̅, 5 √2, π Irrational non-repeating decimals √2, π any p/q form

Worked Examples

Example 1 — Classify −5, 0, 3/4, √7 and 9 into number sets −5: integer and rational (not natural/whole, since it's negative). 0: whole number, integer, and rational. 3/4: rational only (not an integer). √7: irrational — 7 is not a perfect square, so √7 never terminates or repeats. Answer: −5 (integer, rational); 0 (whole, integer, rational); 3/4 (rational); √7 (irrational); 9 (natural, whole, integer, rational).

Example 2 — Test 273 for divisibility by 2, 3, 5, 9 and 10 Last digit is 3 (odd, not 0 or 5) → not divisible by 2, 5, or 10. Digit sum: 2+7+3 = 12. 12 is divisible by 3 but not by 9. Answer: 273 is divisible by 3 only (273 ÷ 3 = 91); not by 2, 5, 9, or 10.

Example 3 — Find the prime factorization of 360 360 = 2 × 180 = 2 × 2 × 90 = 2 × 2 × 2 × 45 = 2³ × 3 × 15 = 2³ × 3 × 3 × 5 Check: 8 × 9 × 5 = 360 ✓ Answer: 360 = 2³ × 3² × 5.

NUMBER THEORY — STUDY NOTES PAGE 2 OF 5 — DIVISIBILITY, HCF & LCM

2. Divisibility, HCF & LCM

Common factors, HCF and LCM

A common factor of two numbers divides both exactly; the largest one is the Highest Common Factor (HCF) , also called the Greatest Common Divisor (GCD). A common multiple is a multiple of both numbers; the smallest one is the Lowest Common Multiple (LCM).

Method 1: Prime factorization

Write each number as a product of primes. The HCF takes the lowest power of every prime common to both numbers. The LCM takes the highest power of every prime appearing in either number.

Method 2: Euclidean Algorithm (for HCF)

Divide the larger number by the smaller; replace the larger number with the smaller, and the smaller with the remainder. Repeat until the remainder is 0 — the last non-zero remainder is the HCF. This is fast even for large numbers.

HCF × LCM = a × b

(for two positive integers a, b) LCM(a, b) = (a × b) ÷ HCF(a, b)

Step-by-step: HCF and LCM by prime factorization

  • 1. Find the prime factorization of each number.
  • 2. List every prime that appears in at least one factorization.
  • 3. HCF: multiply each common prime raised to its lowest power.
  • 4. LCM: multiply each prime raised to its highest power across all numbers.

Worked Examples

Example 4 — Find the HCF and LCM of 36 and 48 by prime factorization 36 = 2² × 3² 48 = 2⁴ × 3 HCF: lowest powers → 2² × 3¹ = 4 × 3 = 12. LCM: highest powers → 2⁴ × 3² = 16 × 9 = 144. Check: 12 × 144 = 1728 = 36 × 48 ✓ Answer: HCF = 12, LCM = 144.

Example 5 — Use the Euclidean Algorithm to find HCF(252, 105) 252 = 2 × 105 + 42 105 = 2 × 42 + 21 42 = 2 × 21 + 0 → remainder is 0, so the HCF is the last non-zero remainder. Answer: HCF(252, 105) = 21.

Example 6 — Find LCM(18, 24) using the HCF–LCM relationship First find HCF with the Euclidean Algorithm: 24 = 1×18+6; 18 = 3×6+0 → HCF = 6. LCM = (18 × 24) ÷ HCF = 432 ÷ 6 = 72. Check: 72 ÷ 18 = 4 and 72 ÷ 24 = 3, both whole numbers ✓ Answer: LCM(18, 24) = 72.

Example 7 — Find the HCF of three numbers: 24, 36 and 60 24 = 2³ × 3 36 = 2² × 3² 60 = 2² × 3 × 5 Common primes with lowest powers across all three: 2² × 3¹ = 4 × 3 = 12. Check: 24÷12=2, 36÷12=3, 60÷12=5, all exact ✓ Answer: HCF(24, 36, 60) = 12.

NUMBER THEORY — STUDY NOTES PAGE 4 OF 5 — MODULAR ARITHMETIC

4. Modular Arithmetic & Applications

What is modular arithmetic?

Modular arithmetic deals with remainders. We say a is congruent to b modulo n, written a ≡ b (mod n) , if a and b leave the same remainder when divided by n (equivalently, n divides a − b exactly). The remainder is always chosen in the range 0, 1, …, n−1.

Operations modulo n

Addition, subtraction and multiplication all work “inside” a modulus: compute normally, then reduce to the remainder on division by n.

Operation Rule Addition (a + b) mod n = ((a mod n) + (b mod n)) mod n Subtraction (a − b) mod n = ((a mod n) − (b mod n)) mod n, adjusted into [0, n) Multiplication (a × b) mod n = ((a mod n) × (b mod n)) mod n

Left: clock arithmetic is addition mod 12. Right: powers of 7 cycle with period 4 modulo 10.

Remainders, cyclic patterns and negative remainders

Powers of a number modulo n eventually repeat in a cycle — useful for finding last digits of huge powers without computing them. Common mistake: for a negative number, do not just add n once. Keep adding (or use the formula a mod n = a − n×⌊a/n⌋) until the result lands in [0, n). For example, −7 mod 5 is not −2; add 5 again to get 3 , since −7 = (−2)×5 + 3.

Applications

  • Clocks — time of day repeats mod 12 (or mod 24); days of the week repeat mod 7.
  • Divisibility — n divides a exactly when a ≡ 0 (mod n).
  • Repeating patterns — last digits of powers, check digits, and simple ciphers all use cycles mod n.

Worked Examples

Example 12 — Evaluate 23 mod 7 and −23 mod 7 23 = 3×7 + 2, so 23 mod 7 = 2. −23 = (−4)×7 + 5 (since −28+5=−23), so −23 mod 7 = 5 (not −2). Answer: 23 mod 7 = 2; −23 mod 7 = 5.

Example 13 — If today is Monday, what day is it 100 days from now? 100 ÷ 7 = 14 remainder 2, so 100 ≡ 2 (mod 7). 2 days after Monday is Wednesday. Answer: Wednesday.

Example 14 — Solve x ≡ 3 (mod 5) for 0 ≤ x < 20 Add multiples of 5 to the base solution x = 3, staying below 20. x = 3, 8, 13, 18 (next value 23 is out of range). Answer: x = 3, 8, 13, 18.

Example 15 — Find the last digit of 7⁴⁵ using cyclic patterns Powers of 7 mod 10 cycle with period 4: 7, 9, 3, 1, 7, 9, 3, 1, … 45 mod 4 = 1 (44 is divisible by 4), so 7⁴⁵ ≡ 7¹ (mod 10). Answer: the last digit of 7⁴⁵ is 7.

NUMBER THEORY — STUDY NOTES PAGE 5 OF 5 — FORMULA SHEET & REVISION

5. Formula Sheet & Quick Revision

Divisibility rules

n Test 2 Last digit is 0, 2, 4, 6, or 8 3 Digit sum divisible by 3 4 Last 2 digits divisible by 4 5 Last digit is 0 or 5 6 Divisible by both 2 and 3 9 Digit sum divisible by 9 10 Last digit is 0 11 Alternating digit sum divisible by 11

Prime factorization & Fundamental Theorem

Every integer > 1 is prime or a unique product of primes. Number of factors of p₁a₁p₂a₂… is (a₁+1)(a₂+1)…

HCF / GCD methods

Prime factorization: multiply shared primes to their lowest power.

Euclidean Algorithm: divide, replace, repeat until remainder 0 — last non-zero remainder is the HCF.

LCM methods

Prime factorization: multiply every prime to its highest power. From HCF: LCM(a,b) = (a×b) ÷ HCF(a,b).

Euclidean Algorithm steps

1. Divide the larger number by the smaller; note the remainder. 2. Replace (larger, smaller) with (smaller, remainder). 3. Repeat until the remainder is 0; the HCF is the last non-zero remainder.

Modular arithmetic rules

Rule Statement Congruence a ≡ b (mod n) ⇔ n | (a−b) Addition (a+b) mod n = ((a mod n)+(b mod n)) mod n Multiplication (a×b) mod n = ((a mod n)×(b mod n)) mod n Range remainder always lies in 0, 1, …, n−

Common student mistakes

Taking a negative mod as negative (fix: add n until in range [0, n)). Forgetting 1 is neither prime nor composite. Using the wrong power (lowest vs highest) for HCF vs LCM. Stopping the Euclidean Algorithm one step early.

Exam tips

Always double-check with HCF × LCM = a × b. For modular problems, reduce each number mod n first before adding or multiplying — the numbers stay small and errors are easier to catch.

Problem-solving checklist

1. Identify what's asked: factor, HCF/LCM, or a modular remainder. 2. Prime-factorize or apply the Euclidean Algorithm as needed. 3. Compute carefully, then check with a related formula (e.g. HCF×LCM=a×b).

Practice Questions

Practice 1. Is 4536 divisible by 2, 3 and 9? Use the divisibility rules.

Practice 2. Find the prime factorization of 252.

Practice 3. Find HCF(84, 126) using the Euclidean Algorithm.

Practice 4. Using Practice 3, find LCM(84, 126).

Practice 5. Find the number of factors of 196.

Practice 6. Evaluate 58 mod 9, and find the last digit of 3⁵⁰ using its cyclic pattern mod 10.

Answer Key

Answer 1. Digit sum = 18 → divisible by 3 and 9; last digit 6 → divisible by 2. Yes to all three.

Answer 2. 252 = 2² × 3² × 7.

Answer 3. 126=1×84+42; 84=2×42+0 → HCF = 42.

Answer 4. LCM = (84×126)÷42 = 252.

Answer 5. 196 = 2²×7² → (2+1)(2+1) = 9 factors.

Answer 6. 58 mod 9 = 4. Powers of 3 mod 10 cycle 3,9,7,1 (period 4); 50 mod 4 = 2, so last digit of 3⁵⁰ is 9.

QUICK REVISION SUMMARY

  • Primes have exactly 2 factors; 1 is neither prime nor composite. • HCF: lowest shared prime powers, or the Euclidean Algorithm. LCM: highest prime powers, or (a×b)÷HCF. • HCF × LCM = a × b for two positive integers. • Every integer > 1 factors uniquely into primes (Fundamental Theorem of Arithmetic). • a ≡ b (mod n) means a and b share the same remainder on division by n; keep remainders in [0, n) — especially for negative numbers. • Powers mod n repeat in a cycle, which gives a fast way to find last digits of huge powers.