Borui Academy

Chapter 1

Factors, Multiples & Divisibility

Factor trees · GCD/LCM · divisibility rules · divisor counting

Factor tree: 385 → 5 × 7 × 11

By the end of this chapter you will:

  1. Build a factor tree for any integer up to 1000 in under 30 seconds
  2. Apply divisibility tests for 2, 3, 4, 5, 9, 10, 11 without long division
  3. Compute GCD and LCM from prime factorizations
  4. Count the divisors of a number from its prime factorization alone
  5. Recognize the Gauss problems that "look hard" but reduce to factoring

1.0 Why this chapter is first

BC baseline: G6 introduces factors, multiples, GCF, LCM, divisibility rules, factor trees, and prime factorization — but only at the level of "what is a prime factor?" Gauss demands fluency: prime-factor a number, count its divisors, reason mod small primes, all in under a minute.

Every recent Gauss 7 paper has at least one question that collapses the moment you write the prime factorization. 2024 Q14: "The number 385 has three prime factors. The sum of these prime factors is…" — a 6-point problem that takes 15 seconds if you know what to do, or 3 minutes of guessing if you don't.

🔑 Lead with factoring. When a Gauss problem mentions a specific number (385, 36, 100, 24, 2024 …), your first move should be: factor it. Often the problem reveals itself.


1.1 Prime numbers — the building blocks

A prime is a positive integer with exactly two divisors: 11 and itself.

First 12 primes 2,3,5,7,11,13,17,19,23,29,31,372, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37
1 is NOT prime (it has only one divisor)
2 is the only even prime (all other evens are divisible by 2 and themselves and 2)

🔑 Memorize the primes up to 50. They are: 2,3,5,7,11,13,17,19,23,29,31,37,41,43,472, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47. Fifteen numbers — you can do this on the bus tomorrow.

Trap: 51 is not prime (51=3×1751 = 3 \times 17). Neither is 57 (=3×19= 3 \times 19) or 91 (=7×13= 7 \times 13). These three numbers fool more students than any other.


1.2 Factor trees — the procedure

To factor 385385:

       385
      /   \
     5    77
         /  \
        7   11

Pull out any prime divisor you can spot, write the cofactor, repeat. Order doesn't matter — every path gives the same set of primes. Result:

385=5×7×11385 = 5 \times 7 \times 11

2024 Q14 asks for the sum of the prime factors: 5+7+11=235 + 7 + 11 = \mathbf{23}. Answer (D). ✅

Practice these on sight:

nn Prime factorization
3636 22322^2 \cdot 3^2
4848 2432^4 \cdot 3
6060 22352^2 \cdot 3 \cdot 5
7272 23322^3 \cdot 3^2
100100 22522^2 \cdot 5^2
120120 23352^3 \cdot 3 \cdot 5
144144 24322^4 \cdot 3^2
180180 223252^2 \cdot 3^2 \cdot 5
360360 233252^3 \cdot 3^2 \cdot 5
10001000 23532^3 \cdot 5^3

1.3 Divisibility rules — the test cheat sheet

Divisor Test
2 Last digit is 0,2,4,6,80, 2, 4, 6, 8
3 Digit sum divisible by 3
4 Last two digits form a number divisible by 4
5 Last digit is 00 or 55
6 Divisible by 2 and 3
8 Last three digits form a number divisible by 8
9 Digit sum divisible by 9
10 Last digit is 00
11 Alternating sum of digits divisible by 11

Example — divisibility chaining

Is 20242024 divisible by 33? Digit sum =2+0+2+4=8= 2+0+2+4 = 8. 8 is not divisible by 3, so no.

Is 20242024 divisible by 44? Last two digits =24= 24, and 24=4×624 = 4 \times 6. Yes — 2024=4×5062024 = 4 \times 506.

Is 12345671\,234\,567 divisible by 1111? Alternating sum =12+34+56+7=4= 1 - 2 + 3 - 4 + 5 - 6 + 7 = 4. Not divisible by 11.

🔑 The digit sum is also useful for the digit-sum problem itself. 2024 Q1 asks: "When the four digits of 2024 are added, the result is…" Answer: 2+0+2+4=82 + 0 + 2 + 4 = \mathbf{8}. (B). ✅


1.4 GCD & LCM via prime factorization

Once you have prime factorizations, GCD and LCM are mechanical.

GCD (greatest common divisor) LCM (least common multiple)
Take The smaller exponent for each shared prime The larger exponent for each prime
Example
a=23325a = 2^3 \cdot 3^2 \cdot 5
b=22337b = 2^2 \cdot 3^3 \cdot 7 gcd=2232=36\gcd = 2^2 \cdot 3^2 = 36 lcm=233357=7560\text{lcm} = 2^3 \cdot 3^3 \cdot 5 \cdot 7 = 7560

Identity worth remembering: gcd(a,b)×lcm(a,b)=a×b\gcd(a, b) \times \text{lcm}(a, b) = a \times b.

When LCM shows up on Gauss

A bell rings every 6 minutes; a chime every 10 minutes. They both go off at 12:00. When do they next ring together?

lcm(6,10)=30\text{lcm}(6, 10) = 30 minutes → next at 12:30.

Pattern: "two recurring events both happen at time T, when is the next coincidence?" → LCM of their periods.


1.5 Counting divisors

If n=p1a1p2a2pkakn = p_1^{a_1} \cdot p_2^{a_2} \cdots p_k^{a_k} then the number of divisors of nn is

(a1+1)(a2+1)(ak+1).(a_1 + 1)(a_2 + 1) \cdots (a_k + 1).

Example: 72=233272 = 2^3 \cdot 3^2. Number of divisors =(3+1)(2+1)=12= (3+1)(2+1) = 12. Verify: 1,2,3,4,6,8,9,12,18,24,36,721, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72. ✓

This is the formula you reach for whenever a Gauss problem asks "how many divisors does nn have" or "for how many integers kk does kk divide nn".


1.6 Worked Examples (Part A → Part B → Part C)

Example 1 — Part A flavor (2024 Q10)

A number is randomly chosen from the list 1,2,3,4,5,6,7,8,91, 2, 3, 4, 5, 6, 7, 8, 9. The probability that the chosen number is divisible by 22, or by 33, or by both, is …

Setup: divisibility = factoring + listing.

Divisible by 2: {2,4,6,8}\{2, 4, 6, 8\}.
Divisible by 3: {3,6,9}\{3, 6, 9\}.

Union (don't double-count 66): {2,3,4,6,8,9}\{2, 3, 4, 6, 8, 9\}6 numbers out of 9.

Probability =69= \dfrac{6}{9}. Answer (C). ✅


Example 2 — Part B flavor

What is the smallest positive integer that has exactly 1212 divisors?

Strategy: 1212 factors as 12,62,43,32212, 6 \cdot 2, 4 \cdot 3, 3 \cdot 2 \cdot 2. Each factoring corresponds to an exponent pattern.

Exponent pattern Smallest nn
n=p11n = p^{11} 211=20482^{11} = 2048
n=p5qn = p^5 \cdot q 253=962^5 \cdot 3 = 96
n=p3q2n = p^3 \cdot q^2 2332=722^3 \cdot 3^2 = 72
n=p2qrn = p^2 \cdot q \cdot r 2235=602^2 \cdot 3 \cdot 5 = 60

Comparing: 60<72<96<204860 < 72 < 96 < 2048, so answer is 60.

🔑 Smaller-base-bigger-exponent gives smaller nn, but only up to a point — try a few patterns and pick the minimum.


Example 3 — Part C flavor (2024 Q25, simplified)

Suppose w,x,y,zw, x, y, z are different prime numbers, and w+x+y=234w + x + y = 234, with y,z<50y, z < 50. The expressions x+yx + y, x+zx + z, 234+z234 + z, 234z234 - z are also all prime. Find wyw - y if the answer is among {226,150,210,174,222}\{226, 150, 210, 174, 222\}.

Key parity observation: 234234 is even, and most primes are odd.

If w,x,yw, x, y are all odd, their sum is odd, contradicting w+x+y=234w+x+y = 234 (even). So one of them is 2.

The smallest is the candidate: y=2y = 2. Then w+x=232w + x = 232.

Now x+y=x+2x + y = x + 2 must be prime. So xx and x+2x+2 are both prime (a "twin-prime" condition).

The answer asks for wy=w2w - y = w - 2. Without working out the rest, observe that any valid ww must satisfy w=232xw = 232 - x where xx is a small twin-prime partner. Trying x=5x = 5 gives w=227w = 227 (prime ✓), and wy=225w - y = 225 — not on the list, so try x=29x = 29, giving w=203=729w = 203 = 7 \cdot 29 (not prime). Continue: x=41x = 41w=191w = 191 (prime ✓), wy=189w - y = 189. Eventually x=5x = 5 with a different distribution... full solution requires checking all twin-prime cases.

🔑 Lesson: in Part C number-theory problems, parity is almost always the first reduction. "All primes are odd except 2" forces small primes into the equation.


1.7 Trap Alerts ⚠️

  1. 11 is not prime. Don't include it in factorizations.
  2. 51,57,91,119,13351, 57, 91, 119, 133 — these LOOK prime and aren't. Memorize: 51=31751 = 3 \cdot 17, 57=31957 = 3 \cdot 19, 91=71391 = 7 \cdot 13, 119=717119 = 7 \cdot 17, 133=719133 = 7 \cdot 19.
  3. "Three prime factors" can mean three distinct or three with multiplicity. Read carefully. 385=5711385 = 5 \cdot 7 \cdot 11 has three distinct. 8=238 = 2^3 has one distinct but "three" with multiplicity.
  4. Divisibility by 6 needs BOTH 2 AND 3, not just digit-sum-divisible-by-6.

1.8 Mnemonic

"Factor first. Then the problem tells you what to do."

  • When a specific integer appears → factor it on scratch paper
  • Digit-sum and last-digit handle divisibility-by-small
  • GCD = small exponents; LCM = big exponents
  • Number of divisors = product of (exponent + 1)

Practice Set (10 problems, mixed difficulty)

  1. (Part A) Find the sum of the prime factors of 9090.
  2. (Part A) What is the smallest 3-digit number divisible by both 44 and 99?
  3. (Part A) How many of the numbers 20,21,22,,3020, 21, 22, \ldots, 30 are divisible by exactly one of 22 or 33?
  4. (Part B) Find gcd(126,168)\gcd(126, 168).
  5. (Part B) Find the LCM of 1212, 1515, and 2020.
  6. (Part B) How many divisors does 180180 have?
  7. (Part B) A number leaves remainder 33 when divided by 77 and remainder 22 when divided by 55. What is its smallest positive value?
  8. (Part C) Find the smallest positive integer that has exactly 1515 divisors.
  9. (Part C) For how many values of nn with 1n1001 \le n \le 100 does nn share no factor greater than 11 with 3030?
  10. (Part C) Two clocks ring at intervals of 3535 and 4242 seconds, starting together at 9:009{:}00. How many times will they ring together in the next hour?

Answers: 1) 10; 2) 108; 3) 6; 4) 42; 5) 60; 6) 18; 7) 17; 8) 144; 9) 26; 10) 8 (every 210 seconds = 3.5 min).


End of chapter. Next: Fractions, Decimals & Percent — Competition Techniques.