100% FREE Updated: Mar 2026 Number Theory Fundamentals of Number Theory

Divisibility and Primes

Comprehensive study notes on Divisibility and Primes for CMI Data Science preparation. This chapter covers key concepts, formulas, and examples needed for your exam.

Divisibility and Primes

Overview

This chapter lays the essential groundwork for understanding number theory, focusing on the core concepts of divisibility and prime numbers. These foundational ideas are not merely abstract mathematical constructs; they are critical building blocks for a wide array of computational and algorithmic problems encountered in data science. Mastering them provides a robust framework for approaching more complex topics.

For the CMI entrance examination, a solid grasp of divisibility and primes is indispensable. These concepts frequently underpin questions related to modular arithmetic, algorithmic efficiency, and even basic cryptographic principles. Expect to encounter problems that test your ability to apply divisibility rules, identify prime factors, and understand the unique properties of prime numbers in various contexts, often requiring logical deduction and computational thinking.

Furthermore, the methods for calculating the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) are fundamental. Proficiency in algorithms like the Euclidean Algorithm is not just about finding answers, but about understanding efficient computational proceduresβ€”a skill directly transferable and highly valued in data science for optimizing code and understanding data structures. This chapter ensures you possess these vital analytical tools for success.

---

Chapter Contents

| # | Topic | What You'll Learn |
|---|-------|-------------------|
| 1 | Prime Numbers and Divisibility | Understand fundamental properties and tests for primes. |
| 2 | GCD and LCM | Compute greatest common divisor and least common multiple. |

---

Learning Objectives

❗ By the End of This Chapter

After studying this chapter, you will be able to:

  • Define and identify prime and composite numbers, and apply divisibility rules.

  • State and apply the Fundamental Theorem of Arithmetic for prime factorization.

  • Calculate the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) using efficient methods, including the Euclidean Algorithm.

  • Solve problems involving prime numbers, divisibility, GCD, and LCM in theoretical and applied contexts.

---

Now let's begin with Prime Numbers and Divisibility...
## Part 1: Prime Numbers and Divisibility

Introduction

Prime numbers and the concept of divisibility form the bedrock of number theory, a fundamental branch of mathematics with widespread applications in data science, especially in cryptography, algorithm design, and computational number theory. For the CMI examination, a solid understanding of these concepts is crucial for tackling problems involving integer properties, modular arithmetic, and combinatorial counting. This unit will equip you with the essential definitions, rules, and problem-solving techniques required to excel in questions related to prime numbers, composite numbers, factors, multiples, and their applications in various numerical scenarios. Mastering these foundational ideas will also lay the groundwork for more advanced topics in number theory.
πŸ“– Prime Number

A positive integer p>1p > 1 is a prime number if its only positive divisors are 11 and pp.
Examples: 2,3,5,7,11,…2, 3, 5, 7, 11, \ldots

πŸ“– Composite Number

A positive integer n>1n > 1 that is not prime is a composite number. It has at least one divisor other than 11 and itself.
Examples: 4,6,8,9,10,…4, 6, 8, 9, 10, \ldots

πŸ“– Divisor (Factor)

An integer dd is a divisor (or factor) of an integer nn if there exists an integer kk such that n=dkn = dk. We denote this as d∣nd | n.
Example: 33 is a divisor of 1212 because 12=3Γ—412 = 3 \times 4.

πŸ“– Multiple

An integer mm is a multiple of an integer nn if nn is a divisor of mm.
Example: 1212 is a multiple of 33.

---

---

Key Concepts

1. Divisibility Rules

Divisibility rules are shortcuts to determine if an integer is divisible by another integer without performing the full division. These are particularly useful for large numbers in competitive exams.

πŸ“ Divisibility Rule for 2

An integer is divisible by 22 if its last digit is an even number (0,2,4,6,80, 2, 4, 6, 8).

πŸ“ Divisibility Rule for 3

An integer is divisible by 33 if the sum of its digits is divisible by 33.

πŸ“ Divisibility Rule for 4

An integer is divisible by 44 if the number formed by its last two digits is divisible by 44.

πŸ“ Divisibility Rule for 5

An integer is divisible by 55 if its last digit is 00 or 55.

πŸ“ Divisibility Rule for 6

An integer is divisible by 66 if it is divisible by both 22 and 33.

πŸ“ Divisibility Rule for 8

An integer is divisible by 88 if the number formed by its last three digits is divisible by 88.

πŸ“ Divisibility Rule for 9

An integer is divisible by 99 if the sum of its digits is divisible by 99.

πŸ“ Divisibility Rule for 10

An integer is divisible by 1010 if its last digit is 00.

πŸ“ Divisibility Rule for 11

An integer is divisible by 1111 if the alternating sum of its digits is divisible by 1111.
(e.g., for abcdabcd, dβˆ’c+bβˆ’ad-c+b-a must be divisible by 1111).

Combining Divisibility Rules

To check divisibility by a composite number NN, factor NN into two coprime (relatively prime) integers aa and bb (i.e., gcd⁑(a,b)=1\gcd(a,b)=1). If a number is divisible by both aa and bb, then it is divisible by NN.

Example:
* Divisibility by 36: Check divisibility by 44 and 99 (since gcd⁑(4,9)=1\gcd(4,9)=1).
* Divisibility by 72: Check divisibility by 88 and 99 (since gcd⁑(8,9)=1\gcd(8,9)=1).
* Divisibility by 80: Check divisibility by 88 and 1010 (since gcd⁑(8,10)=2β‰ 1\gcd(8,10)=2 \neq 1, this is not the best pair. Better to use 88 and 55 and 22. Or, 88 and 1010 works if you check for 1010 first (last digit 0) and then the number formed by the last three digits for 88). More precisely, for divisibility by 8080, it must be divisible by 1010 (last digit 00) AND the number formed by the remaining digits (after removing the last zero) must be divisible by 88.
* Divisibility by 120: Check divisibility by 88, 33, and 55 (since gcd⁑(8,3)=1\gcd(8,3)=1, gcd⁑(8,5)=1\gcd(8,5)=1, gcd⁑(3,5)=1\gcd(3,5)=1).

Worked Example:

Problem: Determine if the number N=728160N = 728160 is divisible by 3636, 7272, and 120120.

Solution:

Step 1: Check divisibility by 2,3,4,5,8,9,102, 3, 4, 5, 8, 9, 10.

* Divisibility by 2: Last digit is 00 (even). So, NN is divisible by 22.
* Divisibility by 3: Sum of digits =7+2+8+1+6+0=24= 7+2+8+1+6+0 = 24. Since 2424 is divisible by 33, NN is divisible by 33.
* Divisibility by 4: Last two digits form 6060. Since 6060 is divisible by 44 (60=4Γ—1560 = 4 \times 15), NN is divisible by 44.
* Divisibility by 5: Last digit is 00. So, NN is divisible by 55.
* Divisibility by 8: Last three digits form 160160. Since 160160 is divisible by 88 (160=8Γ—20160 = 8 \times 20), NN is divisible by 88.
* Divisibility by 9: Sum of digits =24= 24. Since 2424 is not divisible by 99, NN is not divisible by 99.
* Divisibility by 10: Last digit is 00. So, NN is divisible by 1010.

Step 2: Apply combined divisibility rules.

* Divisibility by 36 (check by 4 and 9):
* NN is divisible by 44 (from Step 1).
* NN is NOT divisible by 99 (from Step 1).
* Therefore, NN is NOT divisible by 3636.

* Divisibility by 72 (check by 8 and 9):
* NN is divisible by 88 (from Step 1).
* NN is NOT divisible by 99 (from Step 1).
* Therefore, NN is NOT divisible by 7272.

* Divisibility by 120 (check by 3, 5, and 8):
* NN is divisible by 33 (from Step 1).
* NN is divisible by 55 (from Step 1).
* NN is divisible by 88 (from Step 1).
* Therefore, NN IS divisible by 120120.

Answer: N=728160N = 728160 is divisible by 120120, but not by 3636 or 7272.

---

2. Prime Factorization

Prime factorization is the process of breaking down a composite number into its prime factors. This is a unique representation for every composite number, as stated by the Fundamental Theorem of Arithmetic.

πŸ“– Fundamental Theorem of Arithmetic

Every integer greater than 11 can be uniquely represented as a product of prime numbers, apart from the order of the factors.

n=p1a1Γ—p2a2×…×pkakn = p_1^{a_1} \times p_2^{a_2} \times \ldots \times p_k^{a_k}

where p1,p2,…,pkp_1, p_2, \ldots, p_k are distinct prime numbers and a1,a2,…,aka_1, a_2, \ldots, a_k are positive integers.

Method for Prime Factorization:

  • Start by dividing the number by the smallest prime number (22) that divides it.

  • Continue dividing the quotient by 22 until it is no longer divisible by 22.

  • Move to the next prime number (33) and repeat the process.

  • Continue with subsequent prime numbers (5,7,11,…5, 7, 11, \ldots) until the quotient becomes 11.

  • The prime factors are all the prime numbers used in the division process.
  • Worked Example:

    Problem: Find the prime factorization of 25202520.

    Solution:

    Step 1: Divide by 22 repeatedly.

    2520Γ·2=12602520 \div 2 = 1260
    1260Γ·2=6301260 \div 2 = 630
    630Γ·2=315630 \div 2 = 315

    Step 2: Divide by 33 repeatedly.

    315Γ·3=105315 \div 3 = 105
    105Γ·3=35105 \div 3 = 35

    Step 3: Divide by 55.

    35Γ·5=735 \div 5 = 7

    Step 4: Divide by 77.

    7Γ·7=17 \div 7 = 1

    Step 5: Collect the prime factors.

    The prime factors are 2,2,2,3,3,5,72, 2, 2, 3, 3, 5, 7.

    Step 6: Write in exponential form.

    2520=23Γ—32Γ—51Γ—712520 = 2^3 \times 3^2 \times 5^1 \times 7^1

    Answer: The prime factorization of 25202520 is 23Γ—32Γ—51Γ—712^3 \times 3^2 \times 5^1 \times 7^1.

    ---

    3. Number of Divisors

    Once the prime factorization of a number is known, it's straightforward to calculate the total number of its positive divisors.

    πŸ“ Number of Divisors

    If the prime factorization of an integer nn is given by n=p1a1Γ—p2a2×…×pkakn = p_1^{a_1} \times p_2^{a_2} \times \ldots \times p_k^{a_k}, then the total number of positive divisors of nn, denoted by Ο„(n)\tau(n) or d(n)d(n), is:

    Ο„(n)=(a1+1)(a2+1)…(ak+1)\tau(n) = (a_1+1)(a_2+1)\ldots(a_k+1)

    Variables:

      • pip_i = distinct prime factors

      • aia_i = exponents of the prime factors


    When to use: To find the count of all positive integers that divide a given number.

    Worked Example:

    Problem: How many positive integers are factors of 18901890?

    Solution:

    Step 1: Find the prime factorization of 18901890.

    1890Γ·2=9451890 \div 2 = 945
    945Γ·3=315945 \div 3 = 315
    315Γ·3=105315 \div 3 = 105
    105Γ·3=35105 \div 3 = 35
    35Γ·5=735 \div 5 = 7
    7Γ·7=17 \div 7 = 1

    So, the prime factorization is 1890=21Γ—33Γ—51Γ—711890 = 2^1 \times 3^3 \times 5^1 \times 7^1.

    Step 2: Identify the exponents of the prime factors.

    The exponents are a1=1a_1 = 1 (for prime 22), a2=3a_2 = 3 (for prime 33), a3=1a_3 = 1 (for prime 55), a4=1a_4 = 1 (for prime 77).

    Step 3: Apply the formula for the number of divisors.

    Ο„(1890)=(a1+1)(a2+1)(a3+1)(a4+1)\tau(1890) = (a_1+1)(a_2+1)(a_3+1)(a_4+1)
    Ο„(1890)=(1+1)(3+1)(1+1)(1+1)\tau(1890) = (1+1)(3+1)(1+1)(1+1)
    Ο„(1890)=(2)(4)(2)(2)\tau(1890) = (2)(4)(2)(2)
    Ο„(1890)=32\tau(1890) = 32

    Answer: There are 3232 positive integer factors of 18901890.

    ---

    ---

    4. Greatest Common Divisor (GCD) and Least Common Multiple (LCM)

    GCD and LCM are fundamental concepts for understanding relationships between integers and are often used in problems involving fractions and simultaneous events.

    πŸ“– Greatest Common Divisor (GCD)

    The greatest common divisor (GCD) of two or more non-zero integers is the largest positive integer that divides each of the integers without leaving a remainder. It is also known as the highest common factor (HCF). We denote the GCD of aa and bb as gcd⁑(a,b)\gcd(a,b).

    πŸ“– Least Common Multiple (LCM)

    The least common multiple (LCM) of two or more non-zero integers is the smallest positive integer that is a multiple of each of the integers. We denote the LCM of aa and bb as lcm⁑(a,b)\operatorname{lcm}(a,b).

    Finding GCD and LCM using Prime Factorization:

    Let A=p1a1p2a2…pkakA = p_1^{a_1} p_2^{a_2} \ldots p_k^{a_k} and B=p1b1p2b2…pkbkB = p_1^{b_1} p_2^{b_2} \ldots p_k^{b_k}, where pip_i are common prime factors and exponents ai,biβ‰₯0a_i, b_i \ge 0.

    πŸ“ GCD from Prime Factorization
    gcd⁑(A,B)=p1min⁑(a1,b1)p2min⁑(a2,b2)…pkmin⁑(ak,bk)\gcd(A,B) = p_1^{\min(a_1,b_1)} p_2^{\min(a_2,b_2)} \ldots p_k^{\min(a_k,b_k)}
    πŸ“ LCM from Prime Factorization
    lcm⁑(A,B)=p1max⁑(a1,b1)p2max⁑(a2,b2)…pkmax⁑(ak,bk)\operatorname{lcm}(A,B) = p_1^{\max(a_1,b_1)} p_2^{\max(a_2,b_2)} \ldots p_k^{\max(a_k,b_k)}
    πŸ“ Relationship between GCD and LCM

    For any two positive integers AA and BB:

    AΓ—B=gcd⁑(A,B)Γ—lcm⁑(A,B)A \times B = \gcd(A,B) \times \operatorname{lcm}(A,B)

    When to use: To find one value if the other two are known, or as a check.

    Application in Fractional Sums (similar to PYQ4):
    When dealing with sums of fractions like 1a+1b+1c+…\frac{1}{a} + \frac{1}{b} + \frac{1}{c} + \ldots, finding the LCM of the denominators is crucial to combine them into a single fraction. If the sum is an integer, this implies specific divisibility conditions on the unknown terms.

    Worked Example:

    Problem: Let S=12+14+1nS = \frac{1}{2} + \frac{1}{4} + \frac{1}{n} be an integer, where nn is a positive integer. Find all possible values of nn.

    Solution:

    Step 1: Combine the known fractions.

    S=12+14+1nS = \frac{1}{2} + \frac{1}{4} + \frac{1}{n}
    The LCM of 22 and 44 is 44.
    S=24+14+1nS = \frac{2}{4} + \frac{1}{4} + \frac{1}{n}
    S=34+1nS = \frac{3}{4} + \frac{1}{n}

    Step 2: Isolate 1n\frac{1}{n} and set the expression equal to an integer KK.

    1n=Kβˆ’34\frac{1}{n} = K - \frac{3}{4}
    1n=4Kβˆ’34\frac{1}{n} = \frac{4K - 3}{4}

    Step 3: Solve for nn.

    n=44Kβˆ’3n = \frac{4}{4K - 3}

    Step 4: Determine possible values for 4Kβˆ’34K - 3.
    Since nn is a positive integer, 4Kβˆ’34K - 3 must be a positive divisor of 44.
    The positive divisors of 44 are 1,2,41, 2, 4.
    Also, KK must be an integer. 4K=(4Kβˆ’3)+34K = (4K-3) + 3. So (4Kβˆ’3)+3(4K-3)+3 must be a multiple of 44.

    Let D=4Kβˆ’3D = 4K - 3. We need DD to be a divisor of 44 AND D+3D+3 to be a multiple of 44.

    * Case 1: D=1D=1
    If D=1D=1, then 4Kβˆ’3=1β€…β€ŠβŸΉβ€…β€Š4K=4β€…β€ŠβŸΉβ€…β€ŠK=14K-3 = 1 \implies 4K = 4 \implies K=1. This is an integer value for KK.
    Then n=4D=41=4n = \frac{4}{D} = \frac{4}{1} = 4.
    Let's check: 12+14+14=24+14+14=44=1\frac{1}{2} + \frac{1}{4} + \frac{1}{4} = \frac{2}{4} + \frac{1}{4} + \frac{1}{4} = \frac{4}{4} = 1, which is an integer. So n=4n=4 is a solution.

    * Case 2: D=2D=2
    If D=2D=2, then 4Kβˆ’3=2β€…β€ŠβŸΉβ€…β€Š4K=54K-3 = 2 \implies 4K = 5. K=54K = \frac{5}{4}, which is not an integer. So this case does not yield a solution.

    * Case 3: D=4D=4
    If D=4D=4, then 4Kβˆ’3=4β€…β€ŠβŸΉβ€…β€Š4K=74K-3 = 4 \implies 4K = 7. K=74K = \frac{7}{4}, which is not an integer. So this case does not yield a solution.

    Therefore, the only positive integer value for nn is 44.

    Answer: 4\boxed{4}

    ---

    5. Number Representation and Algebraic Problems

    Numbers can be represented using place value notation. For a number with digits dkdkβˆ’1…d1d0d_k d_{k-1} \ldots d_1 d_0, its value is dkΓ—10k+dkβˆ’1Γ—10kβˆ’1+…+d1Γ—101+d0Γ—100d_k \times 10^k + d_{k-1} \times 10^{k-1} + \ldots + d_1 \times 10^1 + d_0 \times 10^0. Problems often involve manipulating these representations.

    πŸ“– Place Value Representation

    A number NN with digits dkdkβˆ’1…d1d0d_k d_{k-1} \ldots d_1 d_0 can be expressed as:

    N=βˆ‘i=0kdiΓ—10iN = \sum_{i=0}^{k} d_i \times 10^i

    For a 44-digit number abcdabcd, its value is 1000a+100b+10c+d1000a + 100b + 10c + d.

    Worked Example:

    Problem: A 22-digit number abab is such that the number baba, obtained by reversing its digits, is 44 times the original number abab plus 33. Find the number abab. (a≠0a \neq 0).

    Solution:

    Step 1: Express the numbers algebraically.

    Original number abab:

    N1=10a+bN_1 = 10a + b

    Reversed number baba:

    N2=10b+aN_2 = 10b + a

    Step 2: Set up the equation based on the problem statement.

    Given that N2=4N1+3N_2 = 4N_1 + 3:

    10b+a=4(10a+b)+310b + a = 4(10a + b) + 3

    Step 3: Expand and simplify the equation.

    10b+a=40a+4b+310b + a = 40a + 4b + 3

    Rearrange terms:

    6b=39a+36b = 39a + 3

    Divide by 33 to simplify:

    2b=13a+12b = 13a + 1

    Step 4: Use the properties of digits (a,ba, b are integers from 00 to 99, with a≠0a \neq 0).

    Since bb is a digit (0≀b≀90 \le b \le 9), 2b2b can range from 00 to 1818.
    So, 13a+113a + 1 must be in the range [0,18][0, 18].

    Consider a=1a=1:

    2b=13(1)+12b = 13(1) + 1

    2b=142b = 14

    b=7b = 7

    This is a valid digit (0≀7≀90 \le 7 \le 9).
    So, a=1,b=7a=1, b=7 is a possible solution. The number is 1717.

    Let's check for other values of aa:
    If a=2a=2:

    2b=13(2)+12b = 13(2) + 1

    2b=26+12b = 26 + 1

    2b=272b = 27

    b=272=13.5b = \frac{27}{2} = 13.5

    This is not a digit (>9>9). Any larger value of aa will also result in b>9b>9.

    Step 5: Verify the solution.

    Original number ab=17ab = 17.
    Reversed number ba=71ba = 71.
    Check the condition: 71=4Γ—17+371 = 4 \times 17 + 3.
    71=68+371 = 68 + 3.
    71=7171 = 71. This is true.

    Answer: 17\boxed{17}

    ---

    Problem-Solving Strategies

    πŸ’‘ Divisibility Strategy for Large Numbers

    To check divisibility by a composite number NN, break NN into its prime power factors (or coprime factors). For example, to check divisibility by 7272, check for 88 and 99. To check by 120120, check for 33, 55, and 88. Always verify that the chosen factors are coprime.

    πŸ’‘ Digit-Based Equation Strategy

    When solving problems involving digits (e.g., abcdabcd), represent the number algebraically using place values (1000a+100b+10c+d1000a + 100b + 10c + d). After simplifying the equation, use the constraints that digits must be integers between 00 and 99 (and a≠0a \neq 0 for first digit) to narrow down possibilities. Start by testing values for the coefficient with the largest multiplier, or the first digit.

    πŸ’‘ Factor Counting Strategy

    Always begin by finding the prime factorization of the given number. Once you have n=p1a1p2a2…pkakn = p_1^{a_1} p_2^{a_2} \ldots p_k^{a_k}, the number of factors is simply (a1+1)(a2+1)…(ak+1)(a_1+1)(a_2+1)\ldots(a_k+1).

    πŸ’‘ Fractional Sums Strategy

    For problems like 1a+1b+1c+1n=integer\frac{1}{a} + \frac{1}{b} + \frac{1}{c} + \frac{1}{n} = \text{integer}, find the LCM of the known denominators to combine them. Then, express 1n\frac{1}{n} in terms of the integer constant and the combined fraction. Finally, solve for nn, remembering that nn must be an integer, and the denominator of the isolated fraction must be a divisor of the numerator. Use modular arithmetic or direct substitution to find valid integer solutions for nn.

    ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ Incorrectly combining divisibility rules: Assuming divisibility by AA and BB implies divisibility by ABAB even if AA and BB are not coprime (e.g., divisible by 22 and 44 does not guarantee divisibility by 88; a number like 1212 is divisible by 22 and 44 but not 88).
    βœ… Correct approach: Ensure factors used for combining rules are coprime (e.g., for 3636, use 44 and 99, not 22 and 1818).
      • ❌ Missing prime factors or exponents: Inaccurately determining the prime factorization can lead to incorrect counts of divisors or errors in GCD/LCM calculations.
    βœ… Correct approach: Be systematic when finding prime factors, starting with the smallest primes and dividing completely before moving to the next prime. Double-check the final factorization.
      • ❌ Algebraic errors in digit problems: Misrepresenting numbers or making calculation mistakes when expanding and simplifying equations involving digits.
    βœ… Correct approach: Carefully write out the place value representation. Be meticulous with algebraic manipulation and simplification. Always test derived digit values against the 0βˆ’90-9 constraint.
      • ❌ Forgetting constraints in fractional sum problems: Not considering that nn must be a positive integer, or that the resulting denominator must be a divisor of the numerator, leading to non-integer or negative solutions.
    βœ… Correct approach: Explicitly list the conditions for nn (e.g., n∈Z+n \in \mathbb{Z}^+). Systematically test possible divisor values, ensuring they satisfy the integer constraint for KK and nn.

    ---

    Practice Questions

    :::question type="MCQ" question="Which of the following numbers is divisible by 7272?" options=["12345678901234567890","45678901204567890120","28976450402897645040","99999999999999999999"] answer="28976450402897645040" hint="A number is divisible by 7272 if it is divisible by both 88 and 99." solution="For a number to be divisible by 7272, it must be divisible by both 88 and 99 (since gcd⁑(8,9)=1\gcd(8,9)=1).

  • Check Divisibility by 8: The number formed by the last three digits must be divisible by 88.

  • Check Divisibility by 9: The sum of the digits must be divisible by 99.
  • Let's evaluate each option:

    * A) 12345678901234567890:
    * Last three digits: 890890. 890Γ·8=111.25890 \div 8 = 111.25. Not divisible by 88. (Fail)

    * B) 45678901204567890120:
    * Last three digits: 120120. 120Γ·8=15120 \div 8 = 15. Divisible by 88. (Pass)
    * Sum of digits: 4+5+6+7+8+9+0+1+2+0=424+5+6+7+8+9+0+1+2+0 = 42. 4242 is not divisible by 99. (Fail)

    * C) 28976450402897645040:
    * Last three digits: 040040. 040Γ·8=5040 \div 8 = 5. Divisible by 88. (Pass)
    * Sum of digits: 2+8+9+7+6+4+5+0+4+0=452+8+9+7+6+4+5+0+4+0 = 45. 4545 is divisible by 99. (Pass)
    * Since it is divisible by both 88 and 99, it is divisible by 7272.

    * D) 99999999999999999999:
    * Last three digits: 999999. 999Γ·8=124.875999 \div 8 = 124.875. Not divisible by 88. (Fail)

    Therefore, only 28976450402897645040 is divisible by 7272.
    Answer: \boxed{2897645040}
    "
    :::

    :::question type="NAT" question="Calculate the total number of positive divisors of 14701470." answer="24" hint="First, find the prime factorization of 14701470. Then use the formula for the number of divisors." solution="Step 1: Find the prime factorization of 14701470.

    1470=10Γ—1471470 = 10 \times 147

    1470=(2Γ—5)Γ—(3Γ—49)1470 = (2 \times 5) \times (3 \times 49)

    1470=2Γ—3Γ—5Γ—721470 = 2 \times 3 \times 5 \times 7^2

    The prime factors are 21,31,51,722^1, 3^1, 5^1, 7^2.

    Step 2: Apply the formula for the number of divisors Ο„(n)=(a1+1)(a2+1)…(ak+1)\tau(n) = (a_1+1)(a_2+1)\ldots(a_k+1).
    The exponents are a1=1,a2=1,a3=1,a4=2a_1=1, a_2=1, a_3=1, a_4=2.

    Ο„(1470)=(1+1)(1+1)(1+1)(2+1)\tau(1470) = (1+1)(1+1)(1+1)(2+1)

    Ο„(1470)=(2)(2)(2)(3)\tau(1470) = (2)(2)(2)(3)

    Ο„(1470)=8Γ—3\tau(1470) = 8 \times 3

    Ο„(1470)=24\tau(1470) = 24

    Answer: \boxed{24}
    "
    :::

    :::question type="MSQ" question="Let S=12+15+110+1PS = \frac{1}{2} + \frac{1}{5} + \frac{1}{10} + \frac{1}{P} be an integer, where PP is a positive integer. Which of the following statements about PP is/are true?" options=["PP must be a multiple of 55.","`PP` is a multiple of 44.","`PP` is a divisor of 1010.","`PP` has exactly 33 positive divisors."] answer="A,C" hint="Combine the fractions and find possible values for PP. Then check the properties for each possible PP." solution="Step 1: Combine the known fractions.
    Let the given sum be KK, where KK is an integer.

    K=12+15+110+1PK = \frac{1}{2} + \frac{1}{5} + \frac{1}{10} + \frac{1}{P}

    The LCM of 2,5,102, 5, 10 is 1010.
    K=510+210+110+1PK = \frac{5}{10} + \frac{2}{10} + \frac{1}{10} + \frac{1}{P}

    K=5+2+110+1PK = \frac{5+2+1}{10} + \frac{1}{P}

    K=810+1PK = \frac{8}{10} + \frac{1}{P}

    K=45+1PK = \frac{4}{5} + \frac{1}{P}

    Step 2: Isolate 1P\frac{1}{P} and solve for PP.

    1P=Kβˆ’45\frac{1}{P} = K - \frac{4}{5}

    1P=5Kβˆ’45\frac{1}{P} = \frac{5K - 4}{5}

    P=55Kβˆ’4P = \frac{5}{5K - 4}

    Step 3: Determine possible values for 5Kβˆ’45K - 4.
    Since PP is a positive integer, 5Kβˆ’45K - 4 must be a positive divisor of 55.
    The positive divisors of 55 are 11 and 55.
    Also, KK must be an integer. 5K=(5Kβˆ’4)+45K = (5K-4) + 4. So (5Kβˆ’4)+4(5K-4)+4 must be a multiple of 55.

    * Case 1: 5Kβˆ’4=15K - 4 = 1
    5K=1+4β€…β€ŠβŸΉβ€…β€Š5K=5β€…β€ŠβŸΉβ€…β€ŠK=15K = 1+4 \implies 5K = 5 \implies K=1. This is an integer.
    Then P=51=5P = \frac{5}{1} = 5.

    * Case 2: 5Kβˆ’4=55K - 4 = 5
    5K=5+4β€…β€ŠβŸΉβ€…β€Š5K=9β€…β€ŠβŸΉβ€…β€ŠK=955K = 5+4 \implies 5K = 9 \implies K = \frac{9}{5}, which is not an integer. So this case does not yield a solution.

    Thus, the only possible positive integer value for PP is 55.

    Step 4: Check the given statements for P=5P=5.
    * A) PP must be a multiple of 55.
    P=5P=5 is a multiple of 55. (True)
    * B) PP is a multiple of 44.
    P=5P=5 is not a multiple of 44. (False)
    * C) PP is a divisor of 1010.
    P=5P=5 divides 1010 (10=5Γ—210 = 5 \times 2). (True)
    * D) PP has exactly 33 positive divisors.
    The divisors of P=5P=5 are 11 and 55. It has exactly 22 positive divisors. So, this statement is false.

    Therefore, statements A and C are true.
    Answer: \boxed{A,C}
    "
    :::

    :::question type="SUB" question="Find the smallest positive integer NN such that NN has exactly 1212 positive divisors and NN is divisible by 6060." answer="60" hint="First, find the prime factorization of 6060. Then, determine the possible exponent combinations for 1212 divisors. Combine these to find the smallest NN." solution="Step 1: Find the prime factorization of 6060.

    60=22Γ—31Γ—5160 = 2^2 \times 3^1 \times 5^1

    Step 2: Determine the possible exponent combinations for a number with 1212 divisors.
    If N=p1a1p2a2…pkakN = p_1^{a_1} p_2^{a_2} \ldots p_k^{a_k}, then the number of divisors is (a1+1)(a2+1)…(ak+1)=12(a_1+1)(a_2+1)\ldots(a_k+1) = 12.
    Possible ways to factor 1212:
    * 1212: Exponent is 1111. (p11p^{11})
    * 6Γ—26 \times 2: Exponents are 5,15, 1. (p15p21p_1^5 p_2^1)
    * 4Γ—34 \times 3: Exponents are 3,23, 2. (p13p22p_1^3 p_2^2)
    * 3Γ—2Γ—23 \times 2 \times 2: Exponents are 2,1,12, 1, 1. (p12p21p31p_1^2 p_2^1 p_3^1)

    Step 3: Construct NN such that it is divisible by 60=22Γ—31Γ—5160 = 2^2 \times 3^1 \times 5^1.
    This means NN must have at least 22,31,512^2, 3^1, 5^1 in its prime factorization.
    We need N=2aΓ—3bΓ—5cN = 2^a \times 3^b \times 5^c where aβ‰₯2,bβ‰₯1,cβ‰₯1a \ge 2, b \ge 1, c \ge 1.
    The number of divisors is (a+1)(b+1)(c+1)=12(a+1)(b+1)(c+1) = 12.

    Let's list partitions of 1212 into 3 factors β‰₯1\ge 1:
    * 12=12Γ—1Γ—1β€…β€ŠβŸΉβ€…β€Š(a,b,c)=(11,0,0)12 = 12 \times 1 \times 1 \implies (a,b,c) = (11,0,0). This fails bβ‰₯1b \ge 1 and cβ‰₯1c \ge 1.
    * 12=6Γ—2Γ—1β€…β€ŠβŸΉβ€…β€Š(a,b,c)=(5,1,0)12 = 6 \times 2 \times 1 \implies (a,b,c) = (5,1,0) (and its permutations).
    * (a,b,c)=(5,1,0)β€…β€ŠβŸΉβ€…β€ŠN=25Γ—31=96(a,b,c) = (5,1,0) \implies N = 2^5 \times 3^1 = 96. Fails cβ‰₯1c \ge 1.
    * (a,b,c)=(5,0,1)β€…β€ŠβŸΉβ€…β€ŠN=25Γ—51=160(a,b,c) = (5,0,1) \implies N = 2^5 \times 5^1 = 160. Fails bβ‰₯1b \ge 1.
    * (a,b,c)=(1,5,0)β€…β€ŠβŸΉβ€…β€ŠN=21Γ—35=486(a,b,c) = (1,5,0) \implies N = 2^1 \times 3^5 = 486. Fails aβ‰₯2a \ge 2 and cβ‰₯1c \ge 1.
    * (a,b,c)=(0,5,1)β€…β€ŠβŸΉβ€…β€ŠN=35Γ—51=1215(a,b,c) = (0,5,1) \implies N = 3^5 \times 5^1 = 1215. Fails aβ‰₯2a \ge 2.
    * (a,b,c)=(1,0,5)β€…β€ŠβŸΉβ€…β€ŠN=21Γ—55(a,b,c) = (1,0,5) \implies N = 2^1 \times 5^5. Fails aβ‰₯2a \ge 2 and bβ‰₯1b \ge 1.
    * (a,b,c)=(0,1,5)β€…β€ŠβŸΉβ€…β€ŠN=31Γ—55(a,b,c) = (0,1,5) \implies N = 3^1 \times 5^5. Fails aβ‰₯2a \ge 2.
    * 12=4Γ—3Γ—1β€…β€ŠβŸΉβ€…β€Š(a,b,c)=(3,2,0)12 = 4 \times 3 \times 1 \implies (a,b,c) = (3,2,0) (and its permutations).
    * (a,b,c)=(3,2,0)β€…β€ŠβŸΉβ€…β€ŠN=23Γ—32=72(a,b,c) = (3,2,0) \implies N = 2^3 \times 3^2 = 72. Fails cβ‰₯1c \ge 1.
    * (a,b,c)=(3,0,2)β€…β€ŠβŸΉβ€…β€ŠN=23Γ—52=200(a,b,c) = (3,0,2) \implies N = 2^3 \times 5^2 = 200. Fails bβ‰₯1b \ge 1.
    * (a,b,c)=(2,3,0)β€…β€ŠβŸΉβ€…β€ŠN=22Γ—33=108(a,b,c) = (2,3,0) \implies N = 2^2 \times 3^3 = 108. Fails cβ‰₯1c \ge 1.
    * (a,b,c)=(2,0,3)β€…β€ŠβŸΉβ€…β€ŠN=22Γ—53=500(a,b,c) = (2,0,3) \implies N = 2^2 \times 5^3 = 500. Fails bβ‰₯1b \ge 1.
    * (a,b,c)=(0,3,2)β€…β€ŠβŸΉβ€…β€ŠN=33Γ—52=675(a,b,c) = (0,3,2) \implies N = 3^3 \times 5^2 = 675. Fails aβ‰₯2a \ge 2.
    * (a,b,c)=(0,2,3)β€…β€ŠβŸΉβ€…β€ŠN=32Γ—53=1125(a,b,c) = (0,2,3) \implies N = 3^2 \times 5^3 = 1125. Fails aβ‰₯2a \ge 2.
    * 12=3Γ—2Γ—2β€…β€ŠβŸΉβ€…β€Š(a,b,c)=(2,1,1)12 = 3 \times 2 \times 2 \implies (a,b,c) = (2,1,1) (and its permutations).
    * (a,b,c)=(2,1,1)β€…β€ŠβŸΉβ€…β€ŠN=22Γ—31Γ—51=60(a,b,c) = (2,1,1) \implies N = 2^2 \times 3^1 \times 5^1 = 60. This satisfies aβ‰₯2,bβ‰₯1,cβ‰₯1a \ge 2, b \ge 1, c \ge 1. This is a candidate.
    * (a,b,c)=(1,2,1)β€…β€ŠβŸΉβ€…β€ŠN=21Γ—32Γ—51=90(a,b,c) = (1,2,1) \implies N = 2^1 \times 3^2 \times 5^1 = 90. Fails aβ‰₯2a \ge 2.
    * (a,b,c)=(1,1,2)β€…β€ŠβŸΉβ€…β€ŠN=21Γ—31Γ—52=150(a,b,c) = (1,1,2) \implies N = 2^1 \times 3^1 \times 5^2 = 150. Fails aβ‰₯2a \ge 2.

    The only configuration that satisfies all conditions using only primes 2,3,52,3,5 is N=60N=60.

    Step 4: Check for numbers with more than 3 prime factors.
    If NN had 4 distinct prime factors, say N=2aΓ—3bΓ—5cΓ—7dN = 2^a \times 3^b \times 5^c \times 7^d.
    For NN to be divisible by 6060, we need aβ‰₯2,bβ‰₯1,cβ‰₯1a \ge 2, b \ge 1, c \ge 1.
    To have 1212 divisors, (a+1)(b+1)(c+1)(d+1)=12(a+1)(b+1)(c+1)(d+1) = 12.
    Since aβ‰₯2β€…β€ŠβŸΉβ€…β€Ša+1β‰₯3a \ge 2 \implies a+1 \ge 3.
    Since bβ‰₯1β€…β€ŠβŸΉβ€…β€Šb+1β‰₯2b \ge 1 \implies b+1 \ge 2.
    Since cβ‰₯1β€…β€ŠβŸΉβ€…β€Šc+1β‰₯2c \ge 1 \implies c+1 \ge 2.
    Since dβ‰₯1β€…β€ŠβŸΉβ€…β€Šd+1β‰₯2d \ge 1 \implies d+1 \ge 2.
    The smallest possible product of these four factors is 3Γ—2Γ—2Γ—2=243 \times 2 \times 2 \times 2 = 24. This is greater than 1212.
    Therefore, NN cannot have 4 or more distinct prime factors.

    Thus, NN must have exactly 3 prime factors: 2,3,52, 3, 5.
    The smallest such NN is 6060.
    Answer: \boxed{60}
    "
    :::

    ---

    Summary

    ❗ Key Takeaways for CMI

    • Divisibility Rules: Master the rules for 2,3,4,5,6,8,9,10,112, 3, 4, 5, 6, 8, 9, 10, 11. For composite divisors, break them into coprime factors (e.g., 72=8Γ—972 = 8 \times 9).

    • Prime Factorization: The Fundamental Theorem of Arithmetic guarantees unique prime factorization. This is the basis for calculating the number of divisors, GCD, and LCM.

    • Number of Divisors: For n=p1a1…pkakn = p_1^{a_1} \ldots p_k^{a_k}, the number of divisors is (a1+1)…(ak+1)(a_1+1)\ldots(a_k+1).

    • GCD and LCM: Use prime factorization to find GCD (min exponents) and LCM (max exponents). Remember AΓ—B=gcd⁑(A,B)Γ—lcm(A,B)A \times B = \gcd(A,B) \times \text{lcm}(A,B).

    • Algebraic Number Representation: For digit-based problems, express numbers using place values (e.g., 100a+10b+c100a + 10b + c) and utilize digit constraints (0βˆ’90-9) to solve.

    • Fractional Sums: Combine fractions using LCM, then analyze the resulting expression to find integer solutions for unknown variables, carefully applying divisibility and integer constraints.

    ---

    What's Next?

    πŸ’‘ Continue Learning

    This topic connects to:

      • Modular Arithmetic: Divisibility is the foundation for congruences and modular arithmetic, which are heavily tested in CMI.

      • Diophantine Equations: Problems involving integer solutions to linear or non-linear equations often rely on properties of divisibility and prime numbers.

      • Combinatorics (Counting Divisors/Factors): The formula for the number of divisors is a direct application of combinatorial principles.

      • Cryptography: Prime numbers are central to public-key cryptography algorithms like RSA.


    Master these connections for comprehensive CMI preparation!

    ---

    πŸ’‘ Moving Forward

    Now that you understand Prime Numbers and Divisibility, let's explore GCD and LCM which builds on these concepts.

    ---

    Part 2: GCD and LCM

    Introduction

    The Greatest Common Divisor (GCD) and Least Common Multiple (LCM) are fundamental concepts in number theory, playing a crucial role in various computational and mathematical applications. For a Masters in Data Science, understanding GCD and LCM is essential not only for theoretical foundations in areas like cryptography and modular arithmetic but also for practical algorithm design, such as optimizing resource allocation, scheduling tasks, and managing data structures. In CMI examinations, questions involving GCD and LCM frequently assess a candidate's ability to apply number theoretic properties, solve systems of equations, and construct logical proofs. This section will thoroughly cover the definitions, properties, and computational methods for GCD and LCM, preparing you for complex problem-solving scenarios.
    πŸ“– Greatest Common Divisor (GCD)

    The Greatest Common Divisor (GCD) of two or more non-zero integers is the largest positive integer that divides each of the integers without leaving a remainder. It is often denoted as gcd⁑(a,b)\operatorname{gcd}(a, b) or (a,b)(a, b).

    πŸ“– Least Common Multiple (LCM)

    The Least Common Multiple (LCM) of two or more non-zero integers is the smallest positive integer that is a multiple of all the integers. It is often denoted as lcm⁑(a,b)\operatorname{lcm}(a, b) or [a,b][a, b].

    πŸ“– Coprime Numbers (Relatively Prime)

    Two integers aa and bb are said to be coprime or relatively prime if their greatest common divisor is 11. That is, gcd⁑(a,b)=1\operatorname{gcd}(a, b) = 1.

    ---

    ---

    Key Concepts

    1. Finding GCD: Euclidean Algorithm

    The Euclidean Algorithm is an efficient method for computing the GCD of two integers. It is based on the principle that the greatest common divisor of two numbers does not change if the larger number is replaced by its difference with the smaller number. This process is repeated until one of the numbers becomes zero, and the other number is the GCD. More formally, it uses the division algorithm: gcd⁑(a,b)=gcd⁑(b,a(modb))\gcd(a, b) = \gcd(b, a \pmod b) for bβ‰ 0b \neq 0.

    Algorithm Steps:

  • Divide aa by bb and find the remainder rr.

  • If r=0r = 0, then bb is the GCD.

  • If rβ‰ 0r \neq 0, replace aa with bb and bb with rr, and repeat the process.
  • πŸ“ Euclidean Algorithm Principle
    gcd⁑(a,b)=gcd⁑(b,a(modb))forΒ bβ‰ 0\gcd(a, b) = \gcd(b, a \pmod b) \quad \text{for } b \neq 0

    Variables:

      • a,ba, b = positive integers

      • a(modb)a \pmod b = remainder when aa is divided by bb


    When to use: Efficiently finding the GCD of two integers, especially large ones.

    Worked Example:

    Problem: Find the greatest common divisor of 10711071 and 462462.

    Solution:

    Step 1: Divide 10711071 by 462462.

    1071=2β‹…462+1471071 = 2 \cdot 462 + 147

    Step 2: Replace aa with 462462 and bb with 147147. Divide 462462 by 147147.

    462=3β‹…147+21462 = 3 \cdot 147 + 21

    Step 3: Replace aa with 147147 and bb with 2121. Divide 147147 by 2121.

    147=7β‹…21+0147 = 7 \cdot 21 + 0

    Step 4: The remainder is 00. The last non-zero remainder is 2121.

    Answer: gcd⁑(1071,462)=21\gcd(1071, 462) = 21

    ---

    2. Finding GCD and LCM using Prime Factorization

    Another method for finding GCD and LCM involves expressing the numbers as products of their prime factors.

    Steps for GCD:

  • Find the prime factorization of each number.

  • Identify all common prime factors.

  • For each common prime factor, take the lowest power that appears in any of the factorizations.

  • Multiply these lowest powers together to get the GCD.
  • Steps for LCM:

  • Find the prime factorization of each number.

  • Identify all prime factors that appear in any of the factorizations (common or unique).

  • For each prime factor, take the highest power that appears in any of the factorizations.

  • Multiply these highest powers together to get the LCM.
  • Worked Example:

    Problem: Find gcd⁑(72,120)\gcd(72, 120) and \lcm(72,120)\lcm(72, 120) using prime factorization.

    Solution:

    Step 1: Prime factorize 7272 and 120120.

    72=23β‹…3272 = 2^3 \cdot 3^2
    120=23β‹…31β‹…51120 = 2^3 \cdot 3^1 \cdot 5^1

    Step 2: Identify common prime factors for GCD (2 and 3). Take the lowest powers.

    gcd⁑(72,120)=2min⁑(3,3)β‹…3min⁑(2,1)β‹…5min⁑(0,1)\gcd(72, 120) = 2^{\min(3,3)} \cdot 3^{\min(2,1)} \cdot 5^{\min(0,1)}
    gcd⁑(72,120)=23β‹…31β‹…50\gcd(72, 120) = 2^3 \cdot 3^1 \cdot 5^0
    gcd⁑(72,120)=8β‹…3β‹…1\gcd(72, 120) = 8 \cdot 3 \cdot 1
    gcd⁑(72,120)=24\gcd(72, 120) = 24

    Step 3: Identify all prime factors for LCM (2, 3, and 5). Take the highest powers.

    \lcm(72,120)=2max⁑(3,3)β‹…3max⁑(2,1)β‹…5max⁑(0,1)\lcm(72, 120) = 2^{\max(3,3)} \cdot 3^{\max(2,1)} \cdot 5^{\max(0,1)}
    \lcm(72,120)=23β‹…32β‹…51\lcm(72, 120) = 2^3 \cdot 3^2 \cdot 5^1
    \lcm(72,120)=8β‹…9β‹…5\lcm(72, 120) = 8 \cdot 9 \cdot 5
    \lcm(72,120)=360\lcm(72, 120) = 360

    Answer: gcd⁑(72,120)=24\gcd(72, 120) = 24, \lcm(72,120)=360\lcm(72, 120) = 360

    ---

    3. Relationship between GCD and LCM

    For any two positive integers aa and bb, there is a fundamental relationship between their product, their GCD, and their LCM.

    πŸ“ GCD-LCM Product Relationship
    aβ‹…b=gcd⁑(a,b)β‹…\lcm(a,b)a \cdot b = \gcd(a, b) \cdot \lcm(a, b)

    Variables:

      • a,ba, b = positive integers


    When to use: When given two of the three values (product, GCD, LCM) and need to find the third. Crucial for problems involving sums and products of numbers with their LCM/GCD.

    Proof Sketch:
    Let a=p1e1β‹―pkeka = p_1^{e_1} \cdots p_k^{e_k} and b=p1f1β‹―pkfkb = p_1^{f_1} \cdots p_k^{f_k} be the prime factorizations of aa and bb, where pip_i are distinct prime numbers and ei,fiβ‰₯0e_i, f_i \ge 0.

    Step 1: Express GCD using prime factorization.

    gcd⁑(a,b)=p1min⁑(e1,f1)β‹―pkmin⁑(ek,fk)\gcd(a, b) = p_1^{\min(e_1, f_1)} \cdots p_k^{\min(e_k, f_k)}

    Step 2: Express LCM using prime factorization.

    \lcm(a,b)=p1max⁑(e1,f1)β‹―pkmax⁑(ek,fk)\lcm(a, b) = p_1^{\max(e_1, f_1)} \cdots p_k^{\max(e_k, f_k)}

    Step 3: Multiply aβ‹…ba \cdot b.

    aβ‹…b=(p1e1β‹―pkek)β‹…(p1f1β‹―pkfk)=p1e1+f1β‹―pkek+fka \cdot b = (p_1^{e_1} \cdots p_k^{e_k}) \cdot (p_1^{f_1} \cdots p_k^{f_k}) = p_1^{e_1+f_1} \cdots p_k^{e_k+f_k}

    Step 4: Multiply gcd⁑(a,b)β‹…\lcm(a,b)\gcd(a, b) \cdot \lcm(a, b).
    Recall that for any two non-negative integers x,yx, y, we have min⁑(x,y)+max⁑(x,y)=x+y\min(x, y) + \max(x, y) = x+y.

    gcd⁑(a,b)β‹…\lcm(a,b)=(p1min⁑(e1,f1)β‹―pkmin⁑(ek,fk))β‹…(p1max⁑(e1,f1)β‹―pkmax⁑(ek,fk))\gcd(a, b) \cdot \lcm(a, b) = (p_1^{\min(e_1, f_1)} \cdots p_k^{\min(e_k, f_k)}) \cdot (p_1^{\max(e_1, f_1)} \cdots p_k^{\max(e_k, f_k)})
    gcd⁑(a,b)β‹…\lcm(a,b)=p1min⁑(e1,f1)+max⁑(e1,f1)β‹―pkmin⁑(ek,fk)+max⁑(ek,fk)\gcd(a, b) \cdot \lcm(a, b) = p_1^{\min(e_1, f_1) + \max(e_1, f_1)} \cdots p_k^{\min(e_k, f_k) + \max(e_k, f_k)}
    gcd⁑(a,b)β‹…\lcm(a,b)=p1e1+f1β‹―pkek+fk\gcd(a, b) \cdot \lcm(a, b) = p_1^{e_1+f_1} \cdots p_k^{e_k+f_k}

    Step 5: Compare the results from Step 3 and Step 4.

    aβ‹…b=gcd⁑(a,b)β‹…\lcm(a,b)a \cdot b = \gcd(a, b) \cdot \lcm(a, b)

    This fundamental relationship is extremely useful in solving problems where sums, products, GCD, and LCM are involved.

    ---

    ---

    4. Properties of GCD and LCM

    Understanding these properties is crucial for solving CMI problems efficiently, especially those requiring proofs or deductions.

    ❗ Must Remember Properties

    • GCD Divides Both Numbers: gcd⁑(a,b)\gcd(a, b) divides both aa and bb.

    • LCM is a Multiple of Both Numbers: \lcm(a,b)\lcm(a, b) is a multiple of both aa and bb.

    • Representation using GCD: If d=gcd⁑(a,b)d = \gcd(a, b), then a=dxa = dx and b=dyb = dy for some integers x,yx, y such that gcd⁑(x,y)=1\gcd(x, y) = 1. This means xx and yy are coprime.

    • GCD with Zero: For any positive integer aa, gcd⁑(a,0)=a\gcd(a, 0) = a.

    • GCD of Consecutive Integers: gcd⁑(n,n+1)=1\gcd(n, n+1) = 1 for any positive integer nn.

    • * Proof: Let d=gcd⁑(n,n+1)d = \gcd(n, n+1). Then dd divides nn and dd divides n+1n+1. This implies dd must divide their difference: (n+1)βˆ’n=1(n+1) - n = 1. Since dd divides 11, dd must be 11.
    • LCM with One: \lcm(a,1)=a\lcm(a, 1) = a for any positive integer aa.

    • If aa divides bb: If a∣ba | b, then gcd⁑(a,b)=a\gcd(a, b) = a and \lcm(a,b)=b\lcm(a, b) = b.

    ---

    Problem-Solving Strategies

    πŸ’‘ CMI Strategy: Using a=dx,b=dya=dx, b=dy

    Many CMI problems involve finding two numbers aa and bb given their sum, product, GCD, or LCM. A powerful strategy is to represent the numbers in terms of their GCD.

    • Assume d=gcd⁑(a,b)d = \gcd(a, b).

    • Write a=dxa = dx and b=dyb = dy, where x,yx, y are coprime integers (gcd⁑(x,y)=1\gcd(x, y) = 1).

    • Substitute these into the given equations.

    • If a+b=Sa+b = S, then dx+dy=Sβ€…β€ŠβŸΉβ€…β€Šd(x+y)=Sdx+dy = S \implies d(x+y) = S.
      If aβ‹…b=Pa \cdot b = P, then (dx)(dy)=Pβ€…β€ŠβŸΉβ€…β€Šd2xy=P(dx)(dy) = P \implies d^2xy = P.
      * If \lcm(a,b)=L\lcm(a, b) = L, use the relationship ab=gcd⁑(a,b)β‹…\lcm(a,b)β€…β€ŠβŸΉβ€…β€Šd2xy=dLβ€…β€ŠβŸΉβ€…β€Šdxy=Lab = \gcd(a, b) \cdot \lcm(a, b) \implies d^2xy = dL \implies dxy = L.
    • Solve the resulting system of equations for d,x,yd, x, y. Remember that xx and yy must be coprime.

    This strategy simplifies the problem by factoring out the common divisor and working with coprime integers, which often have fewer possibilities.

    πŸ’‘ CMI Strategy: Proofs involving Coprimality

    For problems asking to show the existence of coprime pairs within a set (like PYQ 1/3), consider these approaches:

    • Consecutive Integers: Always remember that gcd⁑(n,n+1)=1\gcd(n, n+1) = 1. If your selection process guarantees consecutive numbers, you've found a coprime pair.

    • Pigeonhole Principle (Implicit): While not explicitly a GCD/LCM topic, such proofs often involve partitioning the set or reasoning about properties of numbers to guarantee a certain outcome. For instance, if you can show that a selection of numbers must contain a pair of numbers whose difference is 1, or whose ratio simplifies to coprime terms, you can deduce coprimality.

    • Properties of Divisibility: If d=gcd⁑(a,b)d = \gcd(a, b), then dd divides aa and dd divides bb. If you can show that no common divisor greater than 1 exists, they are coprime.

    ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ Confusing GCD and LCM: Students sometimes mix up the definitions or the prime factorization rules (e.g., taking highest power for GCD).
    βœ… Correct: GCD uses lowest powers of common prime factors. LCM uses highest powers of all prime factors.
      • ❌ Forgetting gcd⁑(x,y)=1\gcd(x, y)=1 when a=dx,b=dya=dx, b=dy: This is a critical condition. If xx and yy are not coprime, then dd was not the greatest common divisor. For example, if a=12,b=18a=12, b=18, then gcd⁑(12,18)=6\gcd(12,18)=6. We write 12=6β‹…2,18=6β‹…312=6 \cdot 2, 18=6 \cdot 3. Here, gcd⁑(2,3)=1\gcd(2,3)=1. If one incorrectly wrote 12=3β‹…4,18=3β‹…612=3 \cdot 4, 18=3 \cdot 6, then gcd⁑(4,6)=2β‰ 1\gcd(4,6)=2 \neq 1, meaning 33 was not the GCD.
    βœ… Correct: Always ensure that xx and yy are coprime when using the a=dx,b=dya=dx, b=dy representation. This is key for uniqueness and correctness.
      • ❌ Incorrectly applying the GCD-LCM product formula: The formula aβ‹…b=gcd⁑(a,b)β‹…\lcm(a,b)a \cdot b = \gcd(a, b) \cdot \lcm(a, b) is for two numbers. It does not directly generalize to three or more numbers in the same simple form.
    βœ… Correct: Use the formula strictly for pairs of numbers. For multiple numbers, iterative application or prime factorization is needed.
      • ❌ Calculation Errors in Euclidean Algorithm: Miscalculating remainders or quotients can lead to an incorrect GCD.
    βœ… Correct: Double-check each division step and remainder calculation.

    ---

    Practice Questions

    :::question type="MCQ" question="Which of the following numbers is the greatest common divisor of 132132 and 252252?" options=["12","6","18","24"] answer="12" hint="Use the Euclidean Algorithm to find the GCD efficiently." solution="Step 1: Apply the Euclidean Algorithm.

    252=1β‹…132+120252 = 1 \cdot 132 + 120

    Step 2: Continue with 132132 and 120120.
    132=1β‹…120+12132 = 1 \cdot 120 + 12

    Step 3: Continue with 120120 and 1212.
    120=10β‹…12+0120 = 10 \cdot 12 + 0

    The last non-zero remainder is 1212.
    Thus, gcd⁑(132,252)=12\gcd(132, 252) = 12.
    Answer: \boxed{12}"
    :::

    :::question type="NAT" question="The product of two positive integers is 720720, and their greatest common divisor is 66. What is their least common multiple?" answer="120" hint="Recall the fundamental relationship between the product, GCD, and LCM of two numbers." solution="Let the two positive integers be aa and bb.
    Given:

    aβ‹…b=720a \cdot b = 720

    gcd⁑(a,b)=6\gcd(a, b) = 6

    We use the formula:

    aβ‹…b=gcd⁑(a,b)β‹…\lcm(a,b)a \cdot b = \gcd(a, b) \cdot \lcm(a, b)

    Substitute the given values:
    720=6β‹…\lcm(a,b)720 = 6 \cdot \lcm(a, b)

    Divide by 66 to find \lcm(a,b)\lcm(a, b):
    \lcm(a,b)=7206\lcm(a, b) = \frac{720}{6}

    \lcm(a,b)=120\lcm(a, b) = 120

    The least common multiple is 120120.
    Answer: \boxed{120}"
    :::

    :::question type="SUB" question="Two positive integers AA and BB satisfy A+B=96A+B=96 and their least common multiple is 180180. Find the values of AA and BB." answer="A=36, B=60 or A=60, B=36" hint="Let d=gcd⁑(A,B)d = \gcd(A, B), then A=dxA=dx and B=dyB=dy with gcd⁑(x,y)=1\gcd(x,y)=1. Use the relationship AB=dβ‹…\lcm(A,B)AB = d \cdot \lcm(A,B)." solution="Let d=gcd⁑(A,B)d = \gcd(A, B).
    Then we can write A=dxA = dx and B=dyB = dy for some positive integers x,yx, y such that gcd⁑(x,y)=1\gcd(x, y) = 1.

    Given: A+B=96A+B = 96
    Substitute A=dx,B=dyA=dx, B=dy:

    dx+dy=96dx + dy = 96

    d(x+y)=96(1)d(x+y) = 96 \quad (1)

    Given: \lcm(A,B)=180\lcm(A, B) = 180
    We know the relationship Aβ‹…B=gcd⁑(A,B)β‹…\lcm(A,B)A \cdot B = \gcd(A, B) \cdot \lcm(A, B).
    Substitute A=dx,B=dy,gcd⁑(A,B)=dA=dx, B=dy, \gcd(A,B)=d:

    (dx)(dy)=dβ‹…180(dx)(dy) = d \cdot 180

    d2xy=180dd^2xy = 180d

    Since dd is a GCD of positive integers, d≠0d \neq 0. We can divide by dd:
    dxy=180(2)dxy = 180 \quad (2)

    From (1), dd must be a divisor of 9696. From (2), dd must be a divisor of 180180.
    Thus, dd must be a common divisor of 9696 and 180180. The greatest common divisor of 9696 and 180180 is:

    96=25β‹…396 = 2^5 \cdot 3

    180=22β‹…32β‹…5180 = 2^2 \cdot 3^2 \cdot 5

    gcd⁑(96,180)=22β‹…31=4β‹…3=12\gcd(96, 180) = 2^2 \cdot 3^1 = 4 \cdot 3 = 12

    So, dd can be any divisor of 1212 (i.e., 1,2,3,4,6,121, 2, 3, 4, 6, 12).

    Let's test possible values for dd:
    If d=12d=12:
    From (1): 12(x+y)=96β€…β€ŠβŸΉβ€…β€Šx+y=812(x+y) = 96 \implies x+y = 8.
    From (2): 12xy=180β€…β€ŠβŸΉβ€…β€Šxy=1512xy = 180 \implies xy = 15.

    We need to find two coprime integers x,yx, y such that x+y=8x+y=8 and xy=15xy=15.
    Consider pairs of factors of 1515: (1,15),(3,5)(1, 15), (3, 5).

    • For (1,15)(1, 15): 1+15=16β‰ 81+15 = 16 \neq 8.

    • For (3,5)(3, 5): 3+5=83+5 = 8. Also, gcd⁑(3,5)=1\gcd(3, 5) = 1. This is a valid pair.

    So, x=3,y=5x=3, y=5 (or x=5,y=3x=5, y=3).

    Now find AA and BB:
    If x=3,y=5x=3, y=5:

    A=dx=12β‹…3=36A = dx = 12 \cdot 3 = 36

    B=dy=12β‹…5=60B = dy = 12 \cdot 5 = 60

    If x=5,y=3x=5, y=3:

    A=dx=12β‹…5=60A = dx = 12 \cdot 5 = 60

    B=dy=12β‹…3=36B = dy = 12 \cdot 3 = 36

    Let's verify other possible values of dd:
    If d=6d=6: x+y=16x+y=16, xy=30xy=30. Pairs of factors of 30: (1,30),(2,15),(3,10),(5,6)(1,30), (2,15), (3,10), (5,6). None sum to 16.
    If d=4d=4: x+y=24x+y=24, xy=45xy=45. Pairs of factors of 45: (1,45),(3,15),(5,9)(1,45), (3,15), (5,9). None sum to 24.
    If d=3d=3: x+y=32x+y=32, xy=60xy=60. Pairs of factors of 60: (1,60),(2,30),(3,20),(4,15),(5,12),(6,10)(1,60), (2,30), (3,20), (4,15), (5,12), (6,10). None sum to 32.
    If d=2d=2: x+y=48x+y=48, xy=90xy=90. Pairs of factors of 90: (1,90),(2,45),(3,30),(5,18),(6,15),(9,10)(1,90), (2,45), (3,30), (5,18), (6,15), (9,10). None sum to 48.
    If d=1d=1: x+y=96x+y=96, xy=180xy=180. Pairs of factors of 180... (too many to list and check, but it's clear d=12d=12 is the correct choice as it's the GCD).

    The values are A=36A=36 and B=60B=60 (or vice versa).
    Answer: \boxed{A=36, B=60 \text{ or } A=60, B=36}"
    :::

    :::question type="MSQ" question="Which of the following statements are always true for positive integers a,b,ca, b, c?" options=["gcd⁑(a,b)≀a\gcd(a, b) \le a","\lcm(a,b)β‰₯a\lcm(a, b) \ge a","If gcd⁑(a,b)=1\gcd(a, b) = 1, then \lcm(a,b)=aβ‹…b\lcm(a, b) = a \cdot b","gcd⁑(a,b,c)=gcd⁑(gcd⁑(a,b),c)\gcd(a, b, c) = \gcd(\gcd(a, b), c)"] answer="A,B,C,D" hint="Carefully consider the definitions and properties of GCD and LCM." solution="Let's analyze each option:
    A. gcd⁑(a,b)≀a\gcd(a, b) \le a: The greatest common divisor of aa and bb must be a divisor of aa. The largest divisor of aa is aa itself. Therefore, gcd⁑(a,b)\gcd(a, b) cannot be greater than aa. This statement is always true.
    B. \lcm(a,b)β‰₯a\lcm(a, b) \ge a: The least common multiple of aa and bb must be a multiple of aa. The smallest positive multiple of aa is aa itself. Therefore, \lcm(a,b)\lcm(a, b) cannot be less than aa. This statement is always true.
    C. If gcd⁑(a,b)=1\gcd(a, b) = 1, then \lcm(a,b)=aβ‹…b\lcm(a, b) = a \cdot b: We know that aβ‹…b=gcd⁑(a,b)β‹…\lcm(a,b)a \cdot b = \gcd(a, b) \cdot \lcm(a, b). If gcd⁑(a,b)=1\gcd(a, b) = 1, then substituting into the formula gives aβ‹…b=1β‹…\lcm(a,b)a \cdot b = 1 \cdot \lcm(a, b), which simplifies to \lcm(a,b)=aβ‹…b\lcm(a, b) = a \cdot b. This statement is always true.
    D. gcd⁑(a,b,c)=gcd⁑(gcd⁑(a,b),c)\gcd(a, b, c) = \gcd(\gcd(a, b), c): The GCD operation is associative. This property allows us to find the GCD of multiple numbers by finding the GCD of pairs iteratively. For example, gcd⁑(6,10,15)=gcd⁑(gcd⁑(6,10),15)=gcd⁑(2,15)=1\gcd(6, 10, 15) = \gcd(\gcd(6, 10), 15) = \gcd(2, 15) = 1. This statement is always true.

    All options are correct.
    Answer: \boxed{A,B,C,D}"
    :::

    :::question type="SUB" question="Prove that for any positive integer nn, the fraction nn+1\frac{n}{n+1} is always in its simplest form." answer="Proof shows gcd⁑(n,n+1)=1\gcd(n, n+1)=1" hint="A fraction is in its simplest form if the numerator and denominator are coprime. You need to show that gcd⁑(n,n+1)=1\gcd(n, n+1) = 1." solution="To prove that the fraction nn+1\frac{n}{n+1} is always in its simplest form, we need to show that the greatest common divisor of the numerator nn and the denominator n+1n+1 is 11. That is, we need to prove gcd⁑(n,n+1)=1\gcd(n, n+1) = 1.

    Step 1: Let dd be the greatest common divisor of nn and n+1n+1.

    d=gcd⁑(n,n+1)d = \gcd(n, n+1)

    Step 2: By the definition of GCD, dd must divide both nn and n+1n+1.

    d∣nandd∣(n+1)d | n \quad \text{and} \quad d | (n+1)

    Step 3: If dd divides two integers, it must also divide their difference.

    d∣((n+1)βˆ’n)d | ((n+1) - n)

    Step 4: Calculate the difference.

    (n+1)βˆ’n=1(n+1) - n = 1

    Step 5: Therefore, dd must divide 11.

    d∣1d | 1

    Step 6: The only positive integer that divides 11 is 11 itself.

    d=1d = 1

    Since gcd⁑(n,n+1)=1\gcd(n, n+1) = 1, the integers nn and n+1n+1 are coprime.
    Therefore, the fraction nn+1\frac{n}{n+1} is always in its simplest form (irreducible).
    Answer: \boxed{\text{Proof shows } \gcd(n, n+1)=1}"
    :::

    ---

    Summary

    ❗ Key Takeaways for CMI

    • Definitions are Key: Understand the precise definitions of GCD, LCM, and coprime numbers.

    • Euclidean Algorithm: Master this efficient method for computing GCD. It's often required for larger numbers or in algorithmic contexts.

    • Fundamental Relationship: The formula aβ‹…b=gcd⁑(a,b)β‹…\lcm(a,b)a \cdot b = \gcd(a, b) \cdot \lcm(a, b) is critical for solving problems where sums, products, GCD, and LCM are interlinked.

    • a=dx,b=dya=dx, b=dy Strategy: When solving for two unknown numbers, representing them as dxdx and dydy where gcd⁑(x,y)=1\gcd(x, y) = 1 is a powerful simplification technique.

    • Properties for Proofs: Remember properties like gcd⁑(n,n+1)=1\gcd(n, n+1) = 1 and the associativity of GCD, which are useful for logical deductions and proofs.

    ---

    What's Next?

    πŸ’‘ Continue Learning

    This topic connects to:

      • Modular Arithmetic: GCD is essential for understanding modular inverses and solving linear congruences.

      • Diophantine Equations: The existence of solutions to linear Diophantine equations depends on the GCD of coefficients.

      • Cryptography: Number theory, including GCD, forms the backbone of public-key cryptographic systems like RSA.

      • Abstract Algebra: Concepts of GCD and LCM extend to rings and integral domains.


    Master these connections for comprehensive CMI preparation!

    ---

    Chapter Summary

    πŸ“– Divisibility and Primes - Key Takeaways

    This chapter laid the groundwork for many advanced topics in Number Theory. For CMI preparation, ensure you have a firm grasp on the following:

    • Fundamental Theorem of Arithmetic (FTA): Every integer greater than 11 can be uniquely expressed as a product of prime numbers, up to the order of the factors. This theorem is the cornerstone for understanding divisibility, GCD, and LCM.

    • Divisibility Properties: Understand basic properties like a∣bβ€…β€ŠβŸΉβ€…β€Ša∣kba|b \implies a|kb, and if a∣ba|b and a∣ca|c, then a∣(bx+cy)a|(bx+cy) for any integers x,yx,y. Crucially, if pp is a prime and p∣abp|ab, then p∣ap|a or p∣bp|b.

    • Number of Divisors (d(n)d(n)) and Sum of Divisors (Οƒ(n)\sigma(n)): If n=p1e1p2e2β‹―pkekn = p_1^{e_1} p_2^{e_2} \cdots p_k^{e_k} is the prime factorization of nn, then

    • d(n)=(e1+1)(e2+1)β‹―(ek+1)d(n) = (e_1+1)(e_2+1)\cdots(e_k+1)

      and
      Οƒ(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)

    • Greatest Common Divisor (GCD) and Least Common Multiple (LCM):

    • Using prime factorization:
      gcd⁑(a,b)=p1min⁑(ea1,eb1)β‹―pkmin⁑(eak,ebk)\gcd(a,b) = p_1^{\min(e_{a1}, e_{b1})} \cdots p_k^{\min(e_{ak}, e_{bk})}

      and
      \lcm(a,b)=p1max⁑(ea1,eb1)β‹―pkmax⁑(eak,ebk)\lcm(a,b) = p_1^{\max(e_{a1}, e_{b1})} \cdots p_k^{\max(e_{ak}, e_{bk})}

      Key relationship:
      gcd⁑(a,b)β‹…\lcm(a,b)=∣ab∣\gcd(a,b) \cdot \lcm(a,b) = |ab|

    • Euclidean Algorithm: An efficient method for finding the GCD of two integers, based on the property gcd⁑(a,b)=gcd⁑(b,a(modb))\gcd(a,b) = \gcd(b, a \pmod b). This algorithm is fundamental for solving linear Diophantine equations and understanding modular inverses.

    • Coprime Numbers: Two integers aa and bb are coprime (or relatively prime) if gcd⁑(a,b)=1\gcd(a,b)=1. Important properties include: if a∣ca|c, b∣cb|c, and gcd⁑(a,b)=1\gcd(a,b)=1, then ab∣cab|c. Also, if a∣bca|bc and gcd⁑(a,b)=1\gcd(a,b)=1, then a∣ca|c.

    ---

    Chapter Review Questions

    :::question type="MCQ" question="Let a=23β‹…32β‹…51a = 2^3 \cdot 3^2 \cdot 5^1 and b=2xβ‹…3yβ‹…5zb = 2^x \cdot 3^y \cdot 5^z. If gcd⁑(a,b)=22β‹…31β‹…50\gcd(a,b) = 2^2 \cdot 3^1 \cdot 5^0 and \lcm(a,b)=23β‹…32β‹…52\lcm(a,b) = 2^3 \cdot 3^2 \cdot 5^2, what is the value of x+y+zx+y+z?" options=["3","4","5","6"] answer="5" hint="Recall the relationship between the exponents in the prime factorization of a,b,gcd⁑(a,b)a, b, \gcd(a,b), and \lcm(a,b)\lcm(a,b) for each prime." solution="Let vp(n)v_p(n) denote the exponent of prime pp in the prime factorization of nn.
    For any prime pp, we know that vp(gcd⁑(a,b))=min⁑(vp(a),vp(b))v_p(\gcd(a,b)) = \min(v_p(a), v_p(b)) and vp(\lcm(a,b))=max⁑(vp(a),vp(b))v_p(\lcm(a,b)) = \max(v_p(a), v_p(b)).

    Given:

    a=23β‹…32β‹…51a = 2^3 \cdot 3^2 \cdot 5^1

    gcd⁑(a,b)=22β‹…31β‹…50\gcd(a,b) = 2^2 \cdot 3^1 \cdot 5^0

    \lcm(a,b)=23β‹…32β‹…52\lcm(a,b) = 2^3 \cdot 3^2 \cdot 5^2

    b=2xβ‹…3yβ‹…5zb = 2^x \cdot 3^y \cdot 5^z

    Let's find x,y,zx, y, z for each prime factor:

    For prime 22:

    v2(a)=3v_2(a) = 3

    v2(gcd⁑(a,b))=2β€…β€ŠβŸΉβ€…β€Šmin⁑(3,x)=2β€…β€ŠβŸΉβ€…β€Šx=2v_2(\gcd(a,b)) = 2 \implies \min(3, x) = 2 \implies x=2

    v2(\lcm(a,b))=3β€…β€ŠβŸΉβ€…β€Šmax⁑(3,x)=3β€…β€ŠβŸΉβ€…β€Šx=2(consistent)v_2(\lcm(a,b)) = 3 \implies \max(3, x) = 3 \implies x=2 \quad \text{(consistent)}

    For prime 33:

    v3(a)=2v_3(a) = 2

    v3(gcd⁑(a,b))=1β€…β€ŠβŸΉβ€…β€Šmin⁑(2,y)=1β€…β€ŠβŸΉβ€…β€Šy=1v_3(\gcd(a,b)) = 1 \implies \min(2, y) = 1 \implies y=1

    v3(\lcm(a,b))=2β€…β€ŠβŸΉβ€…β€Šmax⁑(2,y)=2β€…β€ŠβŸΉβ€…β€Šy=1(consistent)v_3(\lcm(a,b)) = 2 \implies \max(2, y) = 2 \implies y=1 \quad \text{(consistent)}

    For prime 55:

    v5(a)=1v_5(a) = 1

    v5(gcd⁑(a,b))=0β€…β€ŠβŸΉβ€…β€Šmin⁑(1,z)=0β€…β€ŠβŸΉβ€…β€Šz=0v_5(\gcd(a,b)) = 0 \implies \min(1, z) = 0 \implies z=0

    v5(\lcm(a,b))=2β€…β€ŠβŸΉβ€…β€Šmax⁑(1,z)=2β€…β€ŠβŸΉβ€…β€Šz=2(consistent)v_5(\lcm(a,b)) = 2 \implies \max(1, z) = 2 \implies z=2 \quad \text{(consistent)}

    So, we have x=2,y=1,z=2x=2, y=1, z=2.
    The sum is:

    x+y+z=2+1+2=5x+y+z = 2+1+2 = 5

    Answer: \boxed{5}"
    :::

    :::question type="NAT" question="Find the largest integer kk such that n3βˆ’nn^3 - n is divisible by kk for all integers nβ‰₯2n \ge 2." answer="6" hint="Factorize the expression n3βˆ’nn^3-n. Consider small values of nn to find potential divisors." solution="The expression is n3βˆ’nn^3 - n.
    We can factorize this as:

    n3βˆ’n=n(n2βˆ’1)=n(nβˆ’1)(n+1)n^3 - n = n(n^2 - 1) = n(n-1)(n+1)

    This is a product of three consecutive integers: (nβˆ’1),n,(n+1)(n-1), n, (n+1).

    We know that:

  • In any set of three consecutive integers, at least one must be even (divisible by 22).

  • In any set of three consecutive integers, exactly one must be divisible by 33.
  • Therefore, the product (nβˆ’1)n(n+1)(n-1)n(n+1) must always be divisible by 22 and by 33.
    Since gcd⁑(2,3)=1\gcd(2,3)=1, the product must be divisible by 2Γ—3=62 \times 3 = 6.

    To confirm this is the largest such integer kk, we can test for small values of nn:
    For n=2n=2: 23βˆ’2=8βˆ’2=62^3 - 2 = 8 - 2 = 6.
    For n=3n=3: 33βˆ’3=27βˆ’3=243^3 - 3 = 27 - 3 = 24.
    For n=4n=4: 43βˆ’4=64βˆ’4=604^3 - 4 = 64 - 4 = 60.

    The largest integer kk must divide 66, 2424, and 6060.

    gcd⁑(6,24,60)=gcd⁑(6,gcd⁑(24,60))=gcd⁑(6,12)=6\gcd(6, 24, 60) = \gcd(6, \gcd(24, 60)) = \gcd(6, 12) = 6

    Thus, the largest integer kk that divides n3βˆ’nn^3-n for all integers nβ‰₯2n \ge 2 is 66.
    Answer: \boxed{6}"
    :::

    :::question type="Short Answer" question="If gcd⁑(a,b)=1\gcd(a,b)=1, prove that gcd⁑(a+b,ab)=1\gcd(a+b, ab)=1." hint="Assume a prime pp divides gcd⁑(a+b,ab)\gcd(a+b, ab) and show it leads to a contradiction using the fact that gcd⁑(a,b)=1\gcd(a,b)=1." solution="Let d=gcd⁑(a+b,ab)d = \gcd(a+b, ab). We want to prove that d=1d=1.
    Assume, for the sake of contradiction, that d>1d > 1.
    Then there must exist a prime number pp such that pp divides dd.
    Since p∣dp|d, we have p∣(a+b)p|(a+b) and p∣abp|ab.

    From p∣abp|ab, by the property of prime numbers, it must be that p∣ap|a or p∣bp|b.

    Case 1: Assume p∣ap|a.
    Since p∣(a+b)p|(a+b) and p∣ap|a, it implies pp must divide their difference:

    p∣((a+b)βˆ’a)p | ((a+b) - a)

    p∣bp | b

    So, if p∣ap|a, then pp must also divide bb.

    Case 2: Assume p∣bp|b.
    Since p∣(a+b)p|(a+b) and p∣bp|b, it implies pp must divide their difference:

    p∣((a+b)βˆ’b)p | ((a+b) - b)

    p∣ap | a

    So, if p∣bp|b, then pp must also divide aa.

    In both cases, we conclude that pp divides both aa and bb.
    This means that pp is a common divisor of aa and bb.
    Therefore, pp must divide gcd⁑(a,b)\gcd(a,b).

    However, we are given that gcd⁑(a,b)=1\gcd(a,b)=1.
    If p∣gcd⁑(a,b)p|\gcd(a,b) and gcd⁑(a,b)=1\gcd(a,b)=1, then p∣1p|1, which is impossible for a prime pp.
    This contradiction arises from our initial assumption that d>1d>1.
    Therefore, our assumption must be false, and dd must be 11.

    Hence, if gcd⁑(a,b)=1\gcd(a,b)=1, then gcd⁑(a+b,ab)=1\gcd(a+b, ab)=1.
    Answer: \boxed{\text{Proof shows } \gcd(a+b, ab)=1}"
    :::

    :::question type="NAT" question="Find the smallest positive integer nn such that nn has exactly 6 divisors and is a multiple of 10." answer="20" hint="If nn has 6 divisors, what are the possible forms of its prime factorization? Use the condition that nn is a multiple of 10 to restrict the prime factors." solution="Let nn be a positive integer. We are given two conditions:

  • nn has exactly 6 divisors, i.e., d(n)=6d(n)=6.

  • nn is a multiple of 10.
  • First, let's analyze the number of divisors. If the prime factorization of nn is p1e1p2e2β‹―pkekp_1^{e_1} p_2^{e_2} \cdots p_k^{e_k}, then the number of divisors is d(n)=(e1+1)(e2+1)β‹―(ek+1)d(n) = (e_1+1)(e_2+1)\cdots(e_k+1).
    Since d(n)=6d(n)=6, there are two possible forms for the exponents:
    a) k=1k=1: e1+1=6β€…β€ŠβŸΉβ€…β€Še1=5e_1+1=6 \implies e_1=5. So n=p5n = p^5 for some prime pp.
    b) k=2k=2: (e1+1)(e2+1)=6(e_1+1)(e_2+1)=6. Since e1,e2β‰₯1e_1, e_2 \ge 1, the only integer solution (up to order) is e1+1=3e_1+1=3 and e2+1=2e_2+1=2, which means e1=2e_1=2 and e2=1e_2=1. So n=p12p21n = p_1^2 p_2^1 for distinct primes p1,p2p_1, p_2.

    Next, let's use the condition that nn is a multiple of 10. This means nn must be divisible by both 22 and 55. So, nn must have 22 and 55 as prime factors.

    Consider Case a): n=p5n = p^5.
    For nn to be a multiple of 10, pp must be 22 and 55 simultaneously, which is impossible.
    If p=2p=2, n=25=32n=2^5=32. Not a multiple of 55.
    If p=5p=5, n=55=3125n=5^5=3125. Not a multiple of 22.
    Thus, nn cannot be of the form p5p^5.

    Consider Case b): n=p12p21n = p_1^2 p_2^1.
    Since nn must be a multiple of 10, {p1,p2}\{p_1, p_2\} must include 22 and 55. We need to consider the smallest possible values for nn.

    Subcase b1): p1=2p_1=2 and p2=5p_2=5.

    n=22β‹…51=4β‹…5=20n = 2^2 \cdot 5^1 = 4 \cdot 5 = 20

    Let's check the conditions: d(20)=(2+1)(1+1)=3β‹…2=6d(20) = (2+1)(1+1) = 3 \cdot 2 = 6. (Correct)
    2020 is a multiple of 1010. (Correct)
    So n=20n=20 is a candidate.

    Subcase b2): p1=5p_1=5 and p2=2p_2=2.

    n=52β‹…21=25β‹…2=50n = 5^2 \cdot 2^1 = 25 \cdot 2 = 50

    Let's check the conditions: d(50)=(2+1)(1+1)=3β‹…2=6d(50) = (2+1)(1+1) = 3 \cdot 2 = 6. (Correct)
    5050 is a multiple of 1010. (Correct)
    So n=50n=50 is a candidate.

    Subcase b3): One of p1,p2p_1, p_2 is 22 or 55, and the other is a different prime.
    For example, if p1=2p_1=2, then n=22β‹…p21=4p2n=2^2 \cdot p_2^1 = 4p_2. For nn to be a multiple of 1010, p2p_2 must be 55 (already covered in b1) or p2p_2 must contain 55 as a factor, which means p2=5p_2=5.
    If p1=5p_1=5, then n=52β‹…p21=25p2n=5^2 \cdot p_2^1 = 25p_2. For nn to be a multiple of 1010, p2p_2 must be 22 (already covered in b2).
    What if p1p_1 and p2p_2 are other primes, and we need to include 22 and 55?
    This would mean nn has at least 33 distinct prime factors (p1,p2p_1, p_2, and either 22 or 55).
    But we established nn can only have 11 or 22 distinct prime factors for d(n)=6d(n)=6.
    So, this means p1p_1 and p2p_2 must be 22 and 55.

    Comparing the candidates n=20n=20 and n=50n=50, the smallest positive integer is 2020.
    Answer: \boxed{20}"
    :::

    ---

    What's Next?

    πŸ’‘ Continue Your CMI Journey

    You've mastered Divisibility and Primes! This chapter is a foundational pillar for much of Number Theory and has direct applications in various competitive math problems.

    Key connections:
    Building on Previous Learning: This chapter uses basic arithmetic, integer properties, and the concept of prime numbers you might have encountered in earlier grades, but delves much deeper into their structure and relationships.
    Next Steps in Number Theory: The concepts of divisibility, GCD, and LCM are indispensable for the upcoming chapters:
    Modular Arithmetic (Congruences): This is the immediate next step, where divisibility forms the basis of congruence relations. Understanding gcd⁑(a,b)\gcd(a,b) is vital for solving linear congruences and finding modular inverses.
    Diophantine Equations: Many Diophantine equations (equations where integer solutions are sought) rely heavily on GCD properties, prime factorization, and divisibility rules.
    Number Theoretic Functions: Functions like Euler's totient function (Ο•(n)\phi(n)) and the Mobius function (ΞΌ(n)\mu(n)) are defined based on prime factorization and divisibility properties, which you will encounter in advanced Number Theory.
    Combinatorics and Problem Solving: Many CMI problems blend Number Theory with Combinatorics. For example, counting numbers with specific divisor properties or solving problems involving arrangements where divisibility plays a role.

    By mastering this chapter, you've equipped yourself with powerful tools to tackle more complex and abstract problems in Number Theory. Keep practicing these concepts, as they will reappear constantly in your CMI preparation!

    🎯 Key Points to Remember

    • βœ“ Master the core concepts in Divisibility and Primes before moving to advanced topics
    • βœ“ Practice with previous year questions to understand exam patterns
    • βœ“ Review short notes regularly for quick revision before exams

    Related Topics in Number Theory

    More Resources

    Why Choose MastersUp?

    🎯

    AI-Powered Plans

    Personalized study schedules based on your exam date and learning pace

    πŸ“š

    15,000+ Questions

    Verified questions with detailed solutions from past papers

    πŸ“Š

    Smart Analytics

    Track your progress with subject-wise performance insights

    πŸ”–

    Bookmark & Revise

    Save important questions for quick revision before exams

    Start Your Free Preparation β†’

    No credit card required β€’ Free forever for basic features