Number theory is a branch of mathematics that deals with the properties and relationships of numbers, especially integers. In competitive exams, number theory forms the backbone of many quantitative aptitude problems. Understanding concepts like divisibility, factorization, and modular arithmetic allows you to solve complex problems quickly and accurately without resorting to lengthy calculations.
In this section, we will explore how fundamental number concepts apply to problem-solving, learn shortcuts through divisibility rules, use the remainder theorem and division algorithm to handle remainders efficiently, work with different number bases, and apply modular arithmetic to solve congruences and remainder problems. These tools are essential for cracking entrance exams with confidence.
Before diving into applications, it's important to understand two fundamental types of numbers:
Note that 1 is neither prime nor composite.
| Number | Status |
|---|---|
| 1 | Neither prime nor composite |
| 2 | Prime |
| 3 | Prime |
| 4 | Composite |
| 5 | Prime |
| 6 | Composite |
| 7 | Prime |
| 8 | Composite |
| 9 | Composite |
| 10 | Composite |
| 11 | Prime |
| 12 | Composite |
| 13 | Prime |
| 14 | Composite |
| 15 | Composite |
| 16 | Composite |
| 17 | Prime |
| 18 | Composite |
| 19 | Prime |
| 20 | Composite |
Why are prime numbers important? Because every composite number can be uniquely expressed as a product of prime numbers. This is called prime factorization, and it is the foundation for finding the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) of numbers.
Divisibility rules help us quickly determine whether one number divides another without performing full division. This saves time in factorization and remainder problems.
| Divisor | Divisibility Rule | Example |
|---|---|---|
| 2 | Number ends with 0, 2, 4, 6, or 8 | 124 is divisible by 2 |
| 3 | Sum of digits divisible by 3 | 123 (1+2+3=6) divisible by 3 |
| 5 | Number ends with 0 or 5 | 145 ends with 5, divisible by 5 |
| 7 | Double last digit, subtract from remaining number; result divisible by 7 | 203: 20 - (3x2)=20-6=14 divisible by 7 |
| 11 | Difference between sum of digits in odd and even positions divisible by 11 | 121: (1+1) - 2 = 0 divisible by 11 |
| 13 | Multiply last digit by 4, add to remaining number; result divisible by 13 | 273: 27 + (3x4)=27+12=39 divisible by 13 |
When dividing numbers or polynomials, understanding the relationship between dividend, divisor, quotient, and remainder is crucial.
Division Algorithm: For any integers \(a\) (dividend) and \(b\) (divisor, \(b eq 0\)), there exist unique integers \(q\) (quotient) and \(r\) (remainder) such that:
\[ a = bq + r, \quad 0 \leq r < |b| \]
This means when you divide \(a\) by \(b\), the remainder \(r\) is always less than the divisor \(b\).
graph TD A[Start with dividend a and divisor b] A --> B[Divide a by b to get quotient q] B --> C[Calculate remainder r = a - bq] C --> D{Is 0 ≤ r < |b|?} D -->|Yes| E[Division Algorithm complete: a = bq + r] D -->|No| F[Adjust q and r accordingly] F --> ERemainder Theorem: When a polynomial \(f(x)\) is divided by a linear divisor \((x - a)\), the remainder is simply \(f(a)\). This allows quick calculation of remainders without performing full polynomial division.
Numbers can be represented in different bases (or radix), which is the number of unique digits including zero used to represent numbers.
Converting numbers between bases is essential for understanding computer-related problems and some competitive exam questions.
| Decimal | Binary (Base 2) | Octal (Base 8) | Hexadecimal (Base 16) |
|---|---|---|---|
| 10 | 1010 | 12 | A |
| 31 | 11111 | 37 | 1F |
| 156 | 10011100 | 234 | 9C |
| 255 | 11111111 | 377 | FF |
Arithmetic in Different Bases: Addition, subtraction, multiplication, and division follow the same principles as decimal but carry over or borrow according to the base.
Modular arithmetic deals with integers wrapped around after reaching a certain value called the modulus. It is like the arithmetic of a clock, where after 12 hours, the count resets to 0.
Definition: For integers \(a\), \(b\), and modulus \(m > 0\), we say:
\[ a \equiv b \pmod{m} \iff m \mid (a - b) \]
This means \(a\) and \(b\) leave the same remainder when divided by \(m\).
graph TD A[Start with numbers a and b, modulus m] A --> B[Calculate a mod m and b mod m] B --> C{Are remainders equal?} C -->|Yes| D[a ≡ b (mod m)] C -->|No| E[a ≠ b (mod m)]Modular arithmetic simplifies calculations in remainder problems, cyclic patterns, and solving congruence equations.
Step 1: Prime factorize both numbers.
84 = 2 x 2 x 3 x 7 = \(2^2 \times 3^1 \times 7^1\)
126 = 2 x 3 x 3 x 7 = \(2^1 \times 3^2 \times 7^1\)
Step 2: For GCD, take the minimum powers of common primes.
GCD = \(2^{\min(2,1)} \times 3^{\min(1,2)} \times 7^{\min(1,1)} = 2^1 \times 3^1 \times 7^1 = 42\)
Step 3: For LCM, take the maximum powers of all primes involved.
LCM = \(2^{\max(2,1)} \times 3^{\max(1,2)} \times 7^{\max(1,1)} = 2^2 \times 3^2 \times 7^1 = 252\)
Answer: GCD = 42, LCM = 252
Step 1: Check divisibility by 3 by summing digits.
Sum = 1 + 2 + 3 + 4 + 5 + 6 = 21
Since 21 is divisible by 3, 123456 is divisible by 3.
Step 2: Check divisibility by 11 by taking difference of sums of digits in odd and even positions.
Positions (from right):
Difference = 12 - 9 = 3, which is not divisible by 11.
Therefore, 123456 is not divisible by 11.
Answer: Divisible by 3 but not by 11.
Step 1: According to the remainder theorem, the remainder is \(f(2)\).
Calculate \(f(2) = (2)^3 + 2(2)^2 - 2 + 5 = 8 + 8 - 2 + 5 = 19\).
Answer: The remainder is 19.
Step 1: Convert 156 to binary.
Divide 156 by 2 repeatedly:
Binary (from bottom to top): 10011100
Step 2: Add binary 1011 (which is 11 in decimal) to 10011100.
Align digits:
10011100 + 1011 ------------
Perform binary addition:
Result: 10100111
Answer: 156 in binary is 10011100; adding 1011 gives 10100111.
Step 1: We want to solve for \(x\) in the congruence:
\(7x \equiv 4 \pmod{11}\)
Step 2: Find the modular inverse of 7 modulo 11, i.e., find \(k\) such that:
\(7k \equiv 1 \pmod{11}\)
Try values of \(k\):
So, the inverse of 7 mod 11 is 8.
Step 3: Multiply both sides of the original congruence by 8:
\(8 \times 7x \equiv 8 \times 4 \pmod{11}\)
\(x \equiv 32 \pmod{11}\)
Calculate \(32 \mod 11\): 32 - 2x11 = 32 - 22 = 10
Answer: \(x \equiv 10 \pmod{11}\). All integers congruent to 10 modulo 11 satisfy the equation.
When to use: When you need to verify divisibility of large numbers without full division.
When to use: When dealing with problems involving common factors or multiples.
When to use: When asked for the remainder of a polynomial divided by a linear factor.
When to use: When addition, subtraction, or multiplication in binary, octal, or hexadecimal seems complex.
When to use: When solving equations like \(ax \equiv b \pmod{m}\) in competitive exams.
Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.
Go to practice →