👁 Preview — Study, Practice and Revise are open; mock tests and the rest of the syllabus unlock on subscription. Unlock all · ₹4,999
← Back to Number System
Study mode

Integers

Introduction to Integers

Integers form a fundamental part of the number system. They include all whole numbers and their negatives, as well as zero. In simple terms, integers are numbers without fractional or decimal parts. For example, -5, 0, and 12 are all integers.

Integers are essential in everyday life - from measuring temperature below zero degrees Celsius to calculating profits and losses in INR. In competitive exams, a strong grasp of integers and their properties is crucial for solving problems quickly and accurately.

Understanding integers also lays the foundation for deeper topics in number theory, such as divisibility, prime numbers, and modular arithmetic.

Definition and Properties of Integers

What are Integers? Integers are the set of numbers that include all positive whole numbers, zero, and negative whole numbers. Symbolically, integers are represented as:

\( \ldots, -3, -2, -1, 0, 1, 2, 3, \ldots \)

Here, the dots indicate that the sequence continues infinitely in both directions.

Key Properties of Integers relate to how they behave under basic operations:

  • Closure: The sum, difference, or product of any two integers is always an integer.
  • Commutativity: Changing the order of addition or multiplication does not change the result. For example, \(3 + 5 = 5 + 3\), and \(4 \times 7 = 7 \times 4\).
  • Associativity: Grouping of numbers does not affect addition or multiplication. For instance, \((2 + 3) + 4 = 2 + (3 + 4)\).
  • Distributivity: Multiplication distributes over addition: \(a \times (b + c) = a \times b + a \times c\).
  • Identity Elements: Zero is the additive identity since \(a + 0 = a\). One is the multiplicative identity since \(a \times 1 = a\).

These properties ensure that integers form a well-structured system for arithmetic operations.

-5 -4 -3 -2 -1 0 1 2 3 4 5

Positive and Negative Integers

Positive integers are numbers greater than zero (1, 2, 3, ...), often used to count objects. Negative integers are less than zero (-1, -2, -3, ...), representing losses, debts, or temperatures below zero.

Zero (0) is neither positive nor negative but plays a crucial role as the neutral element in addition.

Even and Odd Numbers

Integers can be classified as even or odd based on divisibility by 2.

  • Even Numbers: Integers divisible by 2 without remainder. Examples: -4, 0, 6, 12.
  • Odd Numbers: Integers that leave a remainder of 1 when divided by 2. Examples: -3, 1, 7, 15.

Understanding even and odd numbers helps in solving many problems involving parity and divisibility.

Properties of Even and Odd Numbers
Operation Even ± Even Odd ± Odd Even ± Odd Even x Even Odd x Odd Even x Odd
Result Even Even Odd Even Odd Even

Example: Sum of two odd numbers like 3 and 5 is 8 (even). Product of an even and an odd number like 4 and 7 is 28 (even).

Division Algorithm and Remainder Theorem

The Division Algorithm is a fundamental concept that expresses any integer division in terms of quotient and remainder.

For any two 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\), you get a quotient \(q\) and a remainder \(r\) which is always less than the absolute value of \(b\).

graph TD    A[Start with integers a and b (b ≠ 0)]    B[Divide a by b]    C[Find quotient q = floor(a/b)]    D[Calculate remainder r = a - bq]    E[Check if 0 ≤ r < |b|]    F[Output q and r]    A --> B    B --> C    C --> D    D --> E    E -->|Yes| F    E -->|No| B

The Remainder Theorem extends this idea to polynomials, stating that the remainder when a polynomial \(f(x)\) is divided by \((x - c)\) is \(f(c)\). This theorem is useful in modular arithmetic and polynomial factorization.

Prime and Composite Numbers

Prime Numbers are integers greater than 1 that have no positive divisors other than 1 and themselves. Examples: 2, 3, 5, 7, 11.

Composite Numbers are integers greater than 1 that have more than two positive divisors. Examples: 4, 6, 8, 9, 12.

Prime numbers are the building blocks of integers since every integer greater than 1 can be uniquely factorized into primes.

First 20 Prime and Composite Numbers
Prime Numbers Composite Numbers
24
36
58
79
1110
1312
1714
1915
2316
2918

GCD and LCM

Greatest Common Divisor (GCD) of two integers is the largest integer that divides both numbers without leaving a remainder.

Least Common Multiple (LCM) of two integers is the smallest positive integer that is divisible by both numbers.

There are two common methods to find GCD and LCM:

  1. Prime Factorization: Express each number as a product of prime factors.
  2. Euclid's Algorithm: A fast method based on repeated division.
graph TD    A[Start with numbers a and b]    B[Check if b = 0]    C[If yes, GCD = a]    D[If no, replace a by b and b by a mod b]    E[Repeat until b = 0]    A --> B    B -->|Yes| C    B -->|No| D    D --> E    E --> B

Once GCD is found, LCM can be calculated using the relation:

\[ \gcd(a,b) \times \mathrm{lcm}(a,b) = a \times b \]

Modular Arithmetic and Congruence

Modular arithmetic deals with integers wrapped around a fixed modulus \(n\). It is like working with a clock where numbers reset after reaching \(n\).

Two integers \(a\) and \(b\) are said to be congruent modulo \(n\) if their difference is divisible by \(n\). This is written as:

\[ a \equiv b \pmod{n} \iff n \mid (a - b) \]

For example, \(17 \equiv 5 \pmod{12}\) because \(17 - 5 = 12\), which is divisible by 12.

0 3 6 9 1 2 4 5 7 8 10 11

Number Bases and Base Conversion

While we usually use the decimal system (base 10), numbers can be represented in other bases such as binary (base 2), octal (base 8), and hexadecimal (base 16). These are especially important in computer science and digital electronics.

Base 10 (Decimal): Uses digits 0-9.

Base 2 (Binary): Uses digits 0 and 1.

Base 8 (Octal): Uses digits 0-7.

Base 16 (Hexadecimal): Uses digits 0-9 and letters A-F (where A=10, B=11, ..., F=15).

Base Conversion Examples
Decimal Binary Octal Hexadecimal
10101012A
15111117F
25511111111377FF
100110010014464

Conversion between bases involves dividing or multiplying by the base and tracking remainders or digits carefully.

Worked Examples

Example 1: Finding GCD and LCM of 48 and 180 Medium
Find the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) of 48 and 180 using prime factorization and Euclid's algorithm.

Step 1: Prime Factorization

48 = \(2^4 \times 3^1\) (since 48 = 2 x 2 x 2 x 2 x 3)

180 = \(2^2 \times 3^2 \times 5^1\) (since 180 = 2 x 2 x 3 x 3 x 5)

Step 2: Find GCD using minimum powers of primes

\(\gcd(48, 180) = 2^{\min(4,2)} \times 3^{\min(1,2)} \times 5^{\min(0,1)} = 2^2 \times 3^1 \times 5^0 = 4 \times 3 \times 1 = 12\)

Step 3: Find LCM using maximum powers of primes

\(\mathrm{lcm}(48, 180) = 2^{\max(4,2)} \times 3^{\max(1,2)} \times 5^{\max(0,1)} = 2^4 \times 3^2 \times 5^1 = 16 \times 9 \times 5 = 720\)

Step 4: Verify using Euclid's Algorithm for GCD

Divide 180 by 48: \(180 = 48 \times 3 + 36\)

Divide 48 by 36: \(48 = 36 \times 1 + 12\)

Divide 36 by 12: \(36 = 12 \times 3 + 0\)

Since remainder is 0, GCD = 12 (matches prime factorization result).

Answer: GCD = 12, LCM = 720

Example 2: Applying Division Algorithm for 1234 / 23 Easy
Find the quotient and remainder when 1234 is divided by 23.

Step 1: Divide 1234 by 23.

23 x 53 = 1219 (since 23 x 50 = 1150, 23 x 3 = 69, total 1150 + 69 = 1219)

23 x 54 = 1242 (too large)

Step 2: Quotient \(q = 53\)

Step 3: Remainder \(r = 1234 - 1219 = 15\)

Answer: Quotient = 53, Remainder = 15

Example 3: Decimal to Binary and Hexadecimal Conversion of 255 INR Medium
Convert 255 INR to binary and hexadecimal.

Step 1: Convert to Binary

Divide 255 by 2 repeatedly and note remainders:

  • 255 / 2 = 127 remainder 1
  • 127 / 2 = 63 remainder 1
  • 63 / 2 = 31 remainder 1
  • 31 / 2 = 15 remainder 1
  • 15 / 2 = 7 remainder 1
  • 7 / 2 = 3 remainder 1
  • 3 / 2 = 1 remainder 1
  • 1 / 2 = 0 remainder 1

Reading remainders bottom to top: 11111111

Step 2: Convert to Hexadecimal

Divide 255 by 16:

  • 255 / 16 = 15 remainder 15
  • 15 / 16 = 0 remainder 15

Remainders: 15 (F), 15 (F)

Hexadecimal: FF

Answer: 255 in binary is 11111111 and in hexadecimal is FF.

Example 4: Modular Arithmetic - Remainder of \(7^{100} \div 13\) Hard
Find the remainder when \(7^{100}\) is divided by 13 using modular arithmetic.

Step 1: Use modular exponentiation and properties

Calculate powers of 7 modulo 13:

  • \(7^1 \equiv 7 \pmod{13}\)
  • \(7^2 = 49 \equiv 10 \pmod{13}\) (since 49 - 39 = 10)
  • \(7^3 = 7^2 \times 7 = 10 \times 7 = 70 \equiv 5 \pmod{13}\) (70 - 65 = 5)
  • \(7^4 = 5 \times 7 = 35 \equiv 9 \pmod{13}\) (35 - 26 = 9)
  • \(7^5 = 9 \times 7 = 63 \equiv 11 \pmod{13}\) (63 - 52 = 11)
  • \(7^6 = 11 \times 7 = 77 \equiv 12 \pmod{13}\) (77 - 65 = 12)
  • \(7^7 = 12 \times 7 = 84 \equiv 6 \pmod{13}\) (84 - 78 = 6)
  • \(7^8 = 6 \times 7 = 42 \equiv 3 \pmod{13}\) (42 - 39 = 3)
  • \(7^9 = 3 \times 7 = 21 \equiv 8 \pmod{13}\) (21 - 13 = 8)
  • \(7^{10} = 8 \times 7 = 56 \equiv 4 \pmod{13}\) (56 - 52 = 4)
  • \(7^{11} = 4 \times 7 = 28 \equiv 2 \pmod{13}\) (28 - 26 = 2)
  • \(7^{12} = 2 \times 7 = 14 \equiv 1 \pmod{13}\) (14 - 13 = 1)

Step 2: Use cyclicity

Since \(7^{12} \equiv 1 \pmod{13}\), powers of 7 repeat every 12 steps modulo 13.

Step 3: Reduce exponent modulo 12

Calculate \(100 \mod 12\): \(100 = 12 \times 8 + 4\), remainder 4.

Step 4: Calculate \(7^{100} \equiv 7^4 \pmod{13}\)

From above, \(7^4 \equiv 9 \pmod{13}\).

Answer: The remainder when \(7^{100}\) is divided by 13 is 9.

Example 5: Sum of Two Odd Integers Easy
Determine whether the sum of two odd integers is even or odd.

Step 1: Represent odd integers

Let the two odd integers be \(2m + 1\) and \(2n + 1\), where \(m, n\) are integers.

Step 2: Add the two odd integers

\((2m + 1) + (2n + 1) = 2m + 2n + 2 = 2(m + n + 1)\)

Step 3: Analyze the sum

The sum is \(2 \times \text{(an integer)}\), which is divisible by 2, hence even.

Answer: The sum of two odd integers is always even.

Formula Bank

Division Algorithm
\[ a = bq + r, \quad 0 \leq r < |b| \]
where: \(a\) = dividend, \(b\) = divisor, \(q\) = quotient, \(r\) = remainder
GCD using Prime Factorization
\[ \gcd(a,b) = \prod p_i^{\min(e_i,f_i)} \]
where: \(p_i\) = prime factors, \(e_i, f_i\) = exponents in \(a\) and \(b\)
LCM using Prime Factorization
\[ \mathrm{lcm}(a,b) = \prod p_i^{\max(e_i,f_i)} \]
where: \(p_i\) = prime factors, \(e_i, f_i\) = exponents in \(a\) and \(b\)
Relation between GCD and LCM
\[ \gcd(a,b) \times \mathrm{lcm}(a,b) = a \times b \]
where: \(a, b\) = integers
Modular Arithmetic
\[ a \equiv b \pmod{n} \iff n \mid (a-b) \]
where: \(a, b\) = integers, \(n\) = modulus

Tips & Tricks

Tip: Use Euclid's algorithm for fast GCD calculation instead of prime factorization.

When to use: When dealing with large numbers in GCD problems.

Tip: Remember that the sum of two odd numbers is always even.

When to use: To quickly determine parity in integer problems.

Tip: For modular arithmetic, reduce intermediate results modulo \(n\) to keep numbers small.

When to use: When calculating large powers modulo \(n\).

Tip: Convert numbers to base 10 before performing arithmetic if unsure about operations in other bases.

When to use: When working with binary, octal, or hexadecimal arithmetic.

Tip: Use the relation \( \gcd \times \mathrm{lcm} = \) product of numbers to find one if the other is known.

When to use: To solve problems involving GCD and LCM efficiently.

Common Mistakes to Avoid

❌ Confusing remainder with quotient in division problems.
✓ Remember that remainder is always less than divisor and quotient is the integer part of division.
Why: Students often mix up the two due to similar terminology.
❌ Assuming zero is a prime number.
✓ Zero is neither prime nor composite; primes are positive integers greater than 1.
Why: Misunderstanding of prime number definition.
❌ Forgetting to reduce numbers modulo \(n\) at each step in modular arithmetic.
✓ Always apply modulo operation after each calculation to simplify.
Why: Leads to unnecessarily large numbers and calculation errors.
❌ Incorrectly converting number bases by mixing place values.
✓ Use systematic multiplication/division methods for conversion.
Why: Place value confusion causes wrong conversions.
❌ Using prime factorization for GCD/LCM of very large numbers, wasting time.
✓ Use Euclid's algorithm for GCD and then find LCM using the formula.
Why: Prime factorization is time-consuming for large inputs.
Curated videos per subtopic
Top YouTube explainers, AI-ranked for your exam and language. Unlocks with subscription.
Unlock

Try Practice next.

Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.

Go to practice →
Ask a doubt
Integers · 10 free messages
Ask me anything about this subtopic. You have 10 free messages this session — chat history isn't saved in preview.