8.2 Division Algorithm, Divisibility Rules, Prime Factorization, Divisors, EBOB (GCD) & EKOK (LCM)

Key Takeaways

  • In the Euclidean division A=B⋅C+KA = B \cdot C + K, the remainder KK must always satisfy 0≤K<B0 \le K < B; many TR-YÖS extremum division problems hinge on enforcing K<BK < B before substituting values.

  • When testing divisibility by a composite number MM, decompose MM into coprime factors (EBOB(a,b)=1\text{EBOB}(a, b) = 1, such as 36=4×936 = 4 \times 9 or 45=5×945 = 5 \times 9) and apply last-digit rules (2,5,10,4,82, 5, 10, 4, 8) before digit-sum rules (3,9,113, 9, 11).

  • For prime factorization N=p1e1p2e2⋯pkekN = p_1^{e_1} p_2^{e_2} \cdots p_k^{e_k}, the number of positive integer divisors is d+(N)=(e1+1)(e2+1)⋯(ek+1)d^+(N) = (e_1 + 1)(e_2 + 1)\cdots(e_k + 1), the total number of integer divisors is 2d+(N)2d^+(N), and the sum of all integer divisors is 00.

  • For any two positive integers aa and bb, a⋅b=EBOB(a,b)⋅EKOK(a,b)a \cdot b = \text{EBOB}(a, b) \cdot \text{EKOK}(a, b) and EBOB(a,b)≤min⁡(a,b)≤max⁡(a,b)≤EKOK(a,b)\text{EBOB}(a, b) \le \min(a, b) \le \max(a, b) \le \text{EKOK}(a, b).

  • In simultaneous remainder problems A=d1x+r1=d2y+r2=d3z+r3A = d_1 x + r_1 = d_2 y + r_2 = d_3 z + r_3 where di−ri=cd_i - r_i = c is constant, adding cc to all parts makes A+cA + c a common multiple of EKOK(d1,d2,d3)\text{EKOK}(d_1, d_2, d_3).

Last updated: October 2026

8.2 Division Algorithm, Divisibility Rules, Prime Factorization, Divisors, EBOB (GCD) & EKOK (LCM)

Number theory questions in the TR-YÖS test structural shortcuts rather than brute-force arithmetic. Whether bounding a variable in a division box, solving for unknown digits in a five-digit number divisible by 3636, counting the non-prime divisors of 720720, or synchronizing remainders via EKOK\text{EKOK}, mastering these four pillars turns lengthy computations into twenty-second solutions.


1. The Euclidean Division Algorithm (Bölme Algoritması)

When a dividend (Bölünen, AA) is divided by a divisor (Bölen, BB) to produce a quotient (Bölüm, CC) and a remainder (Kalan, KK), two fundamental relationships govern the division box:

  1. The Division Identity (Bölme Özdeşliği):
A=B⋅C+KA = B \cdot C + K
  1. The Strict Remainder Inequality (Kalan Koşulu):
0≤K<B0 \le K < B

The remainder KK is strictly less than the divisor BB. If K=0K = 0, we say AA is exactly divisible by BB (B∣AB \mid A).

Classic TR-YÖS Division Traps

  • Swapping Divisor and Quotient: You may interchange the divisor BB and the quotient CC (A=C⋅B+KA = C \cdot B + K) if and only if the remainder is also strictly less than the quotient (K<CK < C).
  • Algebraic Remainder Bounds: Suppose AA divided by B=3x+4B = 3x + 4 gives quotient C=x+1C = x + 1 and remainder K=x2K = x^2 for x∈Nx \in \mathbb{N}. You cannot choose arbitrary values for xx: the condition K<BK < B forces:
x2<3x+4  ⟹  x2−3x−4<0  ⟹  (x−4)(x+1)<0x^2 < 3x + 4 \implies x^2 - 3x - 4 < 0 \implies (x - 4)(x + 1) < 0

Since x∈Nx \in \mathbb{N}, only x∈{0,1,2,3}x \in \{0, 1, 2, 3\} are valid! Thus the maximum possible value of AA occurs at x=3x = 3, giving B=13B = 13, C=4C = 4, K=9K = 9, and A=13(4)+9=61A = 13(4) + 9 = 61.

  • Modular Arithmetic of Remainders: The remainder of A±BA \pm B, A⋅BA \cdot B, or AnA^n when divided by mm equals the remainder obtained by replacing AA and BB with their respective remainders modulo mm.

2. Divisibility Rules (Bölünebilme Kuralları)

Elementary Rules (By Last Digits vs. By Digit Sums)

  • Last-Digit Family (2,5,10,4,82, 5, 10, 4, 8):
    • By 22: The units digit is even ({0,2,4,6,8}\{0, 2, 4, 6, 8\}).
    • By 55: The units digit is 00 or 55 (remainder mod 55 is determined entirely by the units digit).
    • By 1010: The units digit is 00 (remainder mod 1010 IS the units digit).
    • By 44: The two-digit number formed by the last two digits is divisible by 44 (10d1+d0≡2d1+d0(mod4)10d_1 + d_0 \equiv 2d_1 + d_0 \pmod 4).
    • By 88: The three-digit number formed by the last three digits is divisible by 88 (4d2+2d1+d0≡0(mod8)4d_2 + 2d_1 + d_0 \equiv 0 \pmod 8).
  • Digit-Sum Family (3,9,113, 9, 11):
    • By 33 (and 99): The sum of all digits ∑di\sum d_i is a multiple of 33 (or 99). The remainder of NN divided by 33 or 99 equals the remainder of ∑di\sum d_i divided by 33 or 99.
    • By 1111 (Alternating Sign Rule): Starting at the units digit (rightmost digit) with a ++ sign and alternating +,−,+,−,…+, -, +, -, \dots from right to left:
R11≡(d0−d1+d2−d3+d4−… )(mod11)R_{11} \equiv (d_0 - d_1 + d_2 - d_3 + d_4 - \dots) \pmod{11}
If this alternating sum is negative, add multiples of $11$ until it falls in $0 \le R_{11} < 11$.

Composite Divisors (Birleşik Sayılarla Bölünebilme)

A number is divisible by a composite divisor MM if and only if it is simultaneously divisible by coprime (aralarında asal) factors aa and bb such that M=a⋅bM = a \cdot b and EBOB(a,b)=1\text{EBOB}(a, b) = 1:

  • 6  ⟺  2 and 36 \iff 2 \text{ and } 3
  • 12  ⟺  3 and 412 \iff 3 \text{ and } 4 (never 2 and 62 \text{ and } 6, since EBOB(2,6)=2≠1\text{EBOB}(2,6) = 2 \ne 1!)
  • 15  ⟺  3 and 515 \iff 3 \text{ and } 5
  • 18  ⟺  2 and 918 \iff 2 \text{ and } 9
  • 30  ⟺  3 and 1030 \iff 3 \text{ and } 10
  • 36  ⟺  4 and 936 \iff 4 \text{ and } 9
  • 45  ⟺  5 and 945 \iff 5 \text{ and } 9
  • 90  ⟺  9 and 1090 \iff 9 \text{ and } 10

Tip

Execution Order: Always apply the last-digit rule (2,5,10,4,82, 5, 10, 4, 8) first to narrow the rightmost digit(s) to 11 or 22 cases, and only then apply the digit-sum rule (3,9,113, 9, 11) to solve for interior digits.


3. Prime Factorization (Asal Çarpanlara Ayırma) & Divisor Counting

A prime number (Asal Sayı) is an integer p≥2p \ge 2 whose only positive divisors are 11 and pp: {2,3,5,7,11,13,17,19,23,… }\{2, 3, 5, 7, 11, 13, 17, 19, 23, \dots\}. Note that 22 is the smallest and the only even prime number (11 is not prime!).

Every integer N≥2N \ge 2 has a unique canonical prime factorization:

N=p1e1⋅p2e2⋯pkekN = p_1^{e_1} \cdot p_2^{e_2} \cdots p_k^{e_k}

where p1<p2<⋯<pkp_1 < p_2 < \dots < p_k are distinct primes and ei∈Z+e_i \in \mathbb{Z}^+. From the exponents eie_i, we extract every divisor property of NN:

  1. Number of Positive Divisors (Pozitif Tam Bölen Sayısı — PBS):
d+(N)=(e1+1)(e2+1)⋯(ek+1)d^+(N) = (e_1 + 1)(e_2 + 1)\cdots(e_k + 1)
  1. Number of Negative Divisors (Negatif Tam Bölen Sayısı): d−(N)=d+(N)d^-(N) = d^+(N).
  2. Total Number of Integer Divisors (Tam Bölen Sayısı — TBS):
d(N)=2⋅d+(N)=2(e1+1)(e2+1)⋯(ek+1)d(N) = 2 \cdot d^+(N) = 2(e_1 + 1)(e_2 + 1)\cdots(e_k + 1)
  1. Sum of All Integer Divisors: Always 00, because every positive divisor dd cancels with its negative counterpart −d-d.
  2. Sum of Positive Divisors:
σ(N)=(p1e1+1−1p1−1)(p2e2+1−1p2−1)⋯(pkek+1−1pk−1)\sigma(N) = \left(\frac{p_1^{e_1+1} - 1}{p_1 - 1}\right)\left(\frac{p_2^{e_2+1} - 1}{p_2 - 1}\right)\cdots\left(\frac{p_k^{e_k+1} - 1}{p_k - 1}\right)
  1. Sum of Non-Prime Integer Divisors: Since positive and negative divisors cancel except that prime divisors are positive, the sum of all integer divisors that are not prime equals −(p1+p2+⋯+pk)-(p_1 + p_2 + \dots + p_k)!
  2. Product of Positive Divisors: P+(N)=Nd+(N)/2P^+(N) = N^{d^+(N)/2}.

4. Greatest Common Divisor (EBOB) & Least Common Multiple (EKOK)

For positive integers a=∏piαia = \prod p_i^{\alpha_i} and b=∏piβib = \prod p_i^{\beta_i}:

EBOB(a,b)=∏pimin⁡(αi,βi),EKOK(a,b)=∏pimax⁡(αi,βi)\text{EBOB}(a, b) = \prod p_i^{\min(\alpha_i, \beta_i)}, \qquad \text{EKOK}(a, b) = \prod p_i^{\max(\alpha_i, \beta_i)}

Fundamental Laws of EBOB and EKOK

  • Product Identity (for TWO numbers): a⋅b=EBOB(a,b)⋅EKOK(a,b)a \cdot b = \text{EBOB}(a, b) \cdot \text{EKOK}(a, b).
  • Ordering Inequality: EBOB(a,b)≤min⁡(a,b)≤max⁡(a,b)≤EKOK(a,b)\text{EBOB}(a, b) \le \min(a, b) \le \max(a, b) \le \text{EKOK}(a, b).
    • When aa and bb are allowed to be equal (a=ba = b), EBOB(a,b)=a=b=EKOK(a,b)\text{EBOB}(a, b) = a = b = \text{EKOK}(a, b).
    • When a≠ba \ne b, to maximize a+ba + b given EKOK(a,b)=L\text{EKOK}(a, b) = L, choose LL and its largest proper positive divisor; that divisor is L/pL/p for the smallest prime factor pp of LL (L>1L>1). To minimize a+ba + b given EBOB(a,b)=G\text{EBOB}(a, b) = G, choose a=Ga = G and b=2Gb = 2G.
  • Coprime Numbers (Aralarında Asal Sayılar): Two positive integers aa and bb are coprime if EBOB(a,b)=1\text{EBOB}(a, b) = 1, which implies EKOK(a,b)=a⋅b\text{EKOK}(a, b) = a \cdot b. Note that 11 is coprime with every positive integer, and any two consecutive positive integers (nn and n+1n+1) or consecutive odd integers (2n−12n-1 and 2n+12n+1) are always coprime!
  • Constant-Deficit Remainder Problems: To find the smallest positive integer AA satisfying
A=d1x+r1=d2y+r2=d3z+r3A = d_1 x + r_1 = d_2 y + r_2 = d_3 z + r_3

where d1−r1=d2−r2=d3−r3=cd_1 - r_1 = d_2 - r_2 = d_3 - r_3 = c, add cc to every expression so that A+c=d1(x+1)=d2(y+1)=d3(z+1)A + c = d_1(x+1) = d_2(y+1) = d_3(z+1). Then A+c=k⋅EKOK(d1,d2,d3)A + c = k \cdot \text{EKOK}(d_1, d_2, d_3) for k∈Z+k \in \mathbb{Z}^+.


Summary Reference Table

Rule / PropertyMathematical FormulaExam Shortcut / Note
Euclidean DivisionA=B⋅C+KA = B \cdot C + K with 0≤K<B0 \le K < BAlways enforce K<BK < B to bound unknown variables
Divisibility by 1111(d0−d1+d2−d3+… )≡0(mod11)(d_0 - d_1 + d_2 - d_3 + \dots) \equiv 0 \pmod{11}Start with ++ on the rightmost (units) digit
Divisor Counts (N=∏pieiN = \prod p_i^{e_i})d+(N)=∏(ei+1)d^+(N) = \prod (e_i + 1); TBS=2d+(N)\text{TBS} = 2 d^+(N)Sum of all integer divisors is 00; non-prime integer sum is −∑pi-\sum p_i
Positive Divisor Sumσ(N)=∏piei+1−1pi−1\sigma(N) = \prod \frac{p_i^{e_i+1} - 1}{p_i - 1}Count odd divisors by omitting the prime factor 22
EBOB / EKOK Identitya⋅b=EBOB(a,b)⋅EKOK(a,b)a \cdot b = \text{EBOB}(a, b) \cdot \text{EKOK}(a, b)If EBOB(a,b)=1\text{EBOB}(a,b) = 1, then EKOK(a,b)=a⋅b\text{EKOK}(a,b) = a \cdot b

Worked Examples

Worked Example 8.2.1: Multi-Condition Composite Divisibility

Problem: The five-digit number (5a38b)10(5a38b)_{10} with distinct digits yields a remainder of 1313 when divided by 3636. Find the value of the digit aa.

Solution:

  1. Decompose 3636 into coprime factors 44 and 99, and reduce the remainder 1313:
    • Remainder when divided by 44: 13≡1(mod4)13 \equiv 1 \pmod 4.
    • Remainder when divided by 99: 13≡4(mod9)13 \equiv 4 \pmod 9.
  2. Apply the mod-44 rule to the last two digits (8b)10(8b)_{10} first: For (8b)10≡1(mod4)(8b)_{10} \equiv 1 \pmod 4, since 8080 is a multiple of 44, we need b≡1(mod4)b \equiv 1 \pmod 4, which gives b∈{1,5,9}b \in \{1, 5, 9\}. Because the digits of (5a38b)10(5a38b)_{10} are distinct, b=5b = 5 is eliminated (since 55 already appears as the leading digit). Thus b=1b = 1 or b=9b = 9.
  3. Apply the mod-99 rule to the digit sum:
    • Case 1 (b=1b = 1): Digit sum is 5+a+3+8+1=17+a≡8+a(mod9)5 + a + 3 + 8 + 1 = 17 + a \equiv 8 + a \pmod 9. Setting 8+a≡4(mod9)8 + a \equiv 4 \pmod 9 yields a=5a = 5. However, 55 is already used in (5a381)10(5a381)_{10}, violating distinct digits!
    • Case 2 (b=9b = 9): Digit sum is 5+a+3+8+9=25+a≡7+a(mod9)5 + a + 3 + 8 + 9 = 25 + a \equiv 7 + a \pmod 9. Setting 7+a≡4(mod9)7 + a \equiv 4 \pmod 9 yields a=6a = 6. Checking distinctness in (56389)10(56389)_{10}: all five digits {5,6,3,8,9}\{5, 6, 3, 8, 9\} are distinct. Thus a=6a = 6 is the unique valid solution.

Worked Example 8.2.2: Divisor Counting with Embedded Powers of 1010

Problem: Let N=18⋅10nN = 18 \cdot 10^n be a positive integer (n∈Z+n \in \mathbb{Z}^+). If NN has exactly 117117 integer divisors that are not prime, find nn.

Solution:

  1. Write the canonical prime factorization of NN:
N=(2⋅32)⋅(2⋅5)n=2n+1⋅32⋅5nN = (2 \cdot 3^2) \cdot (2 \cdot 5)^n = 2^{n+1} \cdot 3^2 \cdot 5^n
  1. Relate total integer divisors (TBS) to non-prime integer divisors: The distinct prime divisors of NN are 2,3,52, 3, 5 (33 primes in total). Every other integer divisor of NN (positive or negative) is non-prime:
TBS(N)−3=117  ⟹  TBS(N)=120\text{TBS}(N) - 3 = 117 \implies \text{TBS}(N) = 120

Since TBS(N)=2⋅d+(N)\text{TBS}(N) = 2 \cdot d^+(N), the number of positive divisors is d+(N)=60d^+(N) = 60. 3. Use the PBS formula to solve for nn:

d+(N)=((n+1)+1)(2+1)(n+1)=3(n+2)(n+1)=60d^+(N) = ((n + 1) + 1)(2 + 1)(n + 1) = 3(n + 2)(n + 1) = 60 (n+2)(n+1)=20=5×4  ⟹  n=3(n + 2)(n + 1) = 20 = 5 \times 4 \implies n = 3

Review the Method

In simultaneous remainder problems A=d1x+r1=d2y+r2=d3z+r3A = d_1 x + r_1 = d_2 y + r_2 = d_3 z + r_3 where di−ri=cd_i - r_i = c is constant, adding cc to all parts makes A+cA + c a common multiple of EKOK(d1,d2,d3)\text{EKOK}(d_1, d_2, d_3).

Loading diagram...
Step-by-Step Decision Flow for Composite Divisibility Problems
Test Your Knowledge

A positive integer AA is divided by B=2x+7B = 2x + 7, yielding a quotient of C=x−1C = x - 1 and a remainder of K=x2−1K = x^2 - 1 (where x∈Z+x \in \mathbb{Z}^+). What is the maximum possible value of AA?

A

1919

B

2828

C

4646

D

3434

Test Your Knowledge

If the six-digit base-1010 number (4a372b)10(4a372b)_{10} is divisible by 4444, what is the sum of all possible values of the digit aa?

A

1616

B

1111

C

1414

D

77

Test Your Knowledge

How many positive integer divisors of N=3600N = 3600 are multiples of 66 but NOT multiples of 55?

A

44

B

66

C

88

D

1212

Test Your Knowledge

Let aa and bb be positive integers such that (2a−3)(2a - 3) and (3b+1)(3b + 1) are coprime (aralarında asal) and 2a−33b+1=3549\frac{2a - 3}{3b + 1} = \frac{35}{49}. If a third integer M>100M > 100 satisfies M=6x+4=8y+6=10z+8M = 6x + 4 = 8y + 6 = 10z + 8 for x,y,z∈Z+x, y, z \in \mathbb{Z}^+, what is the minimum value of M+a+bM + a + b?

A

122122

B

124124

C

126126

D

130130

Sections you finish are checked off in the contents.