👁 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

Whole Numbers

Introduction to Whole Numbers

Whole numbers are the set of numbers that include zero and all positive integers without fractions or decimals. In other words, whole numbers are 0, 1, 2, 3, 4, 5, ... and so on, continuing indefinitely.

Whole numbers are fundamental in everyday life. For example, when counting money in Indian Rupees (INR), measuring quantities like kilograms of rice, or counting people, whole numbers are used. They are also a crucial part of quantitative aptitude tests for competitive exams, where understanding their properties helps solve many problems efficiently.

It is important to distinguish whole numbers from related sets:

  • Natural Numbers: These are the counting numbers starting from 1, 2, 3, ... (i.e., whole numbers without zero).
  • Integers: These include all whole numbers plus their negative counterparts, like -3, -2, -1, 0, 1, 2, 3, ...

Thus, whole numbers form a subset of integers and include zero, unlike natural numbers.

Definition and Properties of Whole Numbers

Definition: Whole numbers are the set of numbers starting from zero and increasing by increments of one, without any fractional or decimal parts.

Mathematically, Whole Numbers = {0, 1, 2, 3, 4, ...}.

Whole numbers have several important properties that make arithmetic operations predictable and consistent. These properties include:

Property Description Example
Closure Sum or product of two whole numbers is always a whole number. 5 + 3 = 8 (whole number), 4 x 2 = 8 (whole number)
Commutativity Order of addition or multiplication does not change the result. 7 + 2 = 2 + 7 = 9, 3 x 5 = 5 x 3 = 15
Associativity Grouping of numbers does not affect addition or multiplication. (2 + 3) + 4 = 2 + (3 + 4) = 9, (1 x 2) x 3 = 1 x (2 x 3) = 6
Distributivity Multiplication distributes over addition. 3 x (4 + 5) = 3 x 4 + 3 x 5 = 27
Identity Elements 0 is the additive identity; 1 is the multiplicative identity. 5 + 0 = 5, 7 x 1 = 7
No Negative Numbers Whole numbers do not include negatives. -1 is not a whole number

Even and Odd Numbers

Whole numbers can be classified as even or odd based on their divisibility by 2.

  • Even numbers: Whole numbers divisible by 2 without remainder. Examples: 0, 2, 4, 6, 8, ...
  • Odd numbers: Whole numbers that leave a remainder of 1 when divided by 2. Examples: 1, 3, 5, 7, 9, ...

Understanding even and odd numbers helps in solving parity problems, pattern recognition, and divisibility questions.

Number Line: 0 2 4 6 8 1 3 5 7 9

Division Algorithm and Remainder Theorem

The Division Algorithm is a fundamental concept that expresses how any whole number (called the dividend) can be divided by another whole number (called the divisor) to give a quotient and a remainder.

Mathematically, it states:

\[ D = d \times q + r \]

where:

  • \(D\) = Dividend (the number to be divided)
  • \(d\) = Divisor (the number dividing the dividend, \(d eq 0\))
  • \(q\) = Quotient (the result of division)
  • \(r\) = Remainder (what is left after division, \(0 \leq r < d\))

This means when you divide \(D\) by \(d\), you get a quotient \(q\) and a remainder \(r\) such that the above equation holds true.

The Remainder Theorem is a special case used often in polynomial division but also applies to whole numbers: when a number \(D\) is divided by \(d\), the remainder is the value of \(D\) modulo \(d\).

graph TD    A[Start with Dividend D and Divisor d] --> B[Divide D by d to get Quotient q]    B --> C[Calculate Remainder r = D - d x q]    C --> D{Is r < d?}    D -- Yes --> E[Division Algorithm holds: D = d x q + r]    D -- No --> B

Prime and Composite Numbers

Understanding prime and composite numbers is essential for factorization and many number theory problems.

  • Prime Numbers: Whole numbers greater than 1 that have only two factors: 1 and the number itself. Examples: 2, 3, 5, 7, 11, 13, 17, 19, ...
  • Composite Numbers: Whole numbers greater than 1 that have more than two factors. Examples: 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, ...

Note that 1 is neither prime nor composite.

Prime Numbers Composite Numbers
2 4
3 6
5 8
7 9
11 10
13 12
17 14
19 15

Prime Factorization and Factor Trees

Prime factorization is the process of expressing a whole number as a product of its prime factors. This is useful for finding the Greatest Common Divisor (GCD), Least Common Multiple (LCM), and solving divisibility problems.

One effective way to find prime factors is by using a factor tree, which breaks down a number step-by-step into prime factors.

For example, let's find the prime factors of 84 using a factor tree:

84 12 3 4 7 2 2

So, the prime factorization of 84 is:

84 = 2 x 2 x 3 x 7 = 2² x 3 x 7

GCD and LCM

The Greatest Common Divisor (GCD) of two whole numbers is the largest whole number that divides both numbers exactly.

The Least Common Multiple (LCM) of two whole numbers is the smallest whole number that is a multiple of both numbers.

Both GCD and LCM can be found using prime factorization or Euclid's algorithm.

graph TD    A[Start with two numbers a and b] --> B[If b = 0, GCD = a]    B --> C{Is b zero?}    C -- Yes --> D[End: GCD found]    C -- No --> E[Replace a with b, b with a mod b]    E --> B

This is Euclid's algorithm, an efficient method to find GCD.

Divisibility Rules

Divisibility rules help quickly determine if a whole number is divisible by another without performing full division. Here are rules for numbers 2 to 12:

Divisor Rule Example
2 Last digit is even (0,2,4,6,8) 124 is divisible by 2
3 Sum of digits divisible by 3 123 (1+2+3=6) divisible by 3
4 Last two digits divisible by 4 312 (12 divisible by 4)
5 Last digit 0 or 5 145 ends with 5
6 Divisible by both 2 and 3 114 divisible by 2 and 3
7 Double last digit, subtract from rest; result divisible by 7 203: 20 - 2x3=14 divisible by 7
8 Last three digits divisible by 8 16,000 divisible by 8
9 Sum of digits divisible by 9 729 (7+2+9=18) divisible by 9
10 Last digit 0 230 divisible by 10
11 Difference between sum of digits in odd and even places divisible by 11 121 (1+1) - 2 = 0 divisible by 11
12 Divisible by both 3 and 4 144 divisible by 3 and 4

Number Bases and Base Conversion

Whole numbers can be represented in different number systems or bases. The most common is the decimal system (base 10), but computers use binary (base 2), octal (base 8), and hexadecimal (base 16).

Each base uses digits from 0 up to one less than the base. For example, binary uses digits 0 and 1, hexadecimal uses digits 0-9 and letters A-F.

To convert a decimal number to another base, repeatedly divide the number by the new base and record the remainders. Writing the remainders in reverse order gives the number in the new base.

Decimal Binary (Base 2) Octal (Base 8) Hexadecimal (Base 16)
10 1010 12 A
15 1111 17 F
255 11111111 377 FF

Modular Arithmetic and Congruence

Modular arithmetic deals with the remainder when one whole number is divided by another. It is often described as "clock arithmetic" because after reaching a certain number (the modulus), numbers wrap around.

We write:

\[ a \equiv b \pmod{m} \]

This means \(a\) is congruent to \(b\) modulo \(m\), or \(a\) and \(b\) leave the same remainder when divided by \(m\).

For example, \(17 \equiv 2 \pmod{5}\) because both 17 and 2 leave a remainder 2 when divided by 5.

graph TD    A[Start with numbers a, b and modulus m] --> B[Calculate a mod m]    B --> C[Calculate b mod m]    C --> D{Are remainders equal?}    D -- Yes --> E[a ≡ b (mod m)]    D -- No --> F[a ≠ b (mod m)]

Worked Examples

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

Step 1: Prime factorize both numbers.

36 = 2² x 3²

48 = 2⁴ x 3¹

Step 2: Find GCD by taking minimum powers of common primes.

GCD = 2^{min(2,4)} x 3^{min(2,1)} = 2² x 3¹ = 4 x 3 = 12

Step 3: Find LCM by taking maximum powers of primes.

LCM = 2^{max(2,4)} x 3^{max(2,1)} = 2⁴ x 3² = 16 x 9 = 144

Step 4: Verify using Euclid's algorithm for GCD.

Divide 48 by 36: 48 = 36 x 1 + 12

Divide 36 by 12: 36 = 12 x 3 + 0

Since remainder is 0, GCD = 12

Answer: GCD = 12, LCM = 144

Example 2: Applying Divisibility Rules Easy
Check if the number 123456 is divisible by 3, 4, 6, and 9 using divisibility rules.

Step 1: Check divisibility by 3.

Sum of digits = 1+2+3+4+5+6 = 21

Since 21 is divisible by 3, 123456 is divisible by 3.

Step 2: Check divisibility by 4.

Last two digits = 56

56 is divisible by 4, so 123456 is divisible by 4.

Step 3: Check divisibility by 6.

Number must be divisible by both 2 and 3.

Last digit is 6 (even), so divisible by 2.

Already divisible by 3 (Step 1).

Therefore, 123456 is divisible by 6.

Step 4: Check divisibility by 9.

Sum of digits = 21 (from Step 1)

21 is not divisible by 9, so 123456 is not divisible by 9.

Answer: Divisible by 3, 4, and 6; not divisible by 9.

Example 3: Prime Factorization of 180 Medium
Find the prime factors of 180 using a factor tree.

Step 1: Start dividing 180 by smallest prime 2.

180 / 2 = 90

Step 2: Divide 90 by 2 again.

90 / 2 = 45

Step 3: 45 is not divisible by 2, try next prime 3.

45 / 3 = 15

Step 4: Divide 15 by 3.

15 / 3 = 5

Step 5: 5 is prime.

Prime factors are 2, 2, 3, 3, and 5.

Answer: 180 = 2² x 3² x 5

Example 4: Base Conversion of 255 INR Medium
Convert 255 (decimal) to binary and hexadecimal number systems.

Step 1: Convert 255 to binary (base 2) by dividing repeatedly by 2.

  • 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

Write remainders in reverse: 11111111

Binary: 255 = 11111111

Step 2: Convert 255 to hexadecimal (base 16) by dividing repeatedly by 16.

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

Remainders correspond to hexadecimal digits: 15 = F

Write remainders in reverse: FF

Hexadecimal: 255 = FF

Example 5: Modular Arithmetic Calculations Medium
Calculate (17 + 23) mod 5 and (7 x 8) mod 6.

Step 1: Calculate (17 + 23) mod 5.

17 + 23 = 40

40 mod 5 = remainder when 40 is divided by 5.

40 / 5 = 8 remainder 0

So, (17 + 23) mod 5 = 0

Step 2: Calculate (7 x 8) mod 6.

7 x 8 = 56

56 mod 6 = remainder when 56 is divided by 6.

56 / 6 = 9 remainder 2

So, (7 x 8) mod 6 = 2

Answer: (17 + 23) mod 5 = 0, (7 x 8) mod 6 = 2

Formula Bank

Division Algorithm
\[ D = d \times q + r \]
where: \(D\) = Dividend, \(d\) = Divisor, \(q\) = Quotient, \(r\) = Remainder (0 ≤ r < d)
Greatest Common Divisor (GCD)
\[ \gcd(a,b) = \prod p_i^{\min(e_i,f_i)} \]
where: \(a = \prod p_i^{e_i}\), \(b = \prod p_i^{f_i}\), \(p_i\) = prime factors
Least Common Multiple (LCM)
\[ \mathrm{lcm}(a,b) = \prod p_i^{\max(e_i,f_i)} \]
where: \(a = \prod p_i^{e_i}\), \(b = \prod p_i^{f_i}\), \(p_i\) = prime factors
Relation between GCD and LCM
\[ a \times b = \gcd(a,b) \times \mathrm{lcm}(a,b) \]
where: \(a,b\) = whole numbers
Modular Arithmetic
\[ a \equiv b \pmod{m} \iff m \mid (a-b) \]
where: \(a,b\) = integers, \(m\) = modulus

Tips & Tricks

Tip: Use divisibility rules to quickly check factors without long division.

When to use: When determining if a number is divisible by small integers like 2, 3, 5, 9, or 11.

Tip: Remember that even numbers end with 0, 2, 4, 6, or 8.

When to use: To quickly identify even numbers in problems involving parity.

Tip: Use factor trees to simplify prime factorization visually.

When to use: When breaking down composite numbers into primes for GCD or LCM.

Tip: Apply Euclid's algorithm for fast GCD calculation instead of prime factorization for large numbers.

When to use: When numbers are large and prime factorization is time-consuming.

Tip: For base conversions, repeatedly divide by the base and track remainders carefully.

When to use: When converting decimal numbers to binary, octal, or hexadecimal.

Common Mistakes to Avoid

❌ Confusing whole numbers with natural numbers by excluding zero.
✓ Remember whole numbers include zero, natural numbers start from 1.
Why: Students often overlook zero as a whole number.
❌ Incorrect application of divisibility rules, e.g., summing digits incorrectly for divisibility by 3 or 9.
✓ Sum all digits correctly and check divisibility of the sum.
Why: Rushing leads to calculation errors.
❌ Mixing up GCD and LCM concepts and formulas.
✓ Recall GCD uses minimum powers of primes, LCM uses maximum powers.
Why: Both involve prime factors but serve different purposes.
❌ Forgetting remainder must be less than divisor in division algorithm.
✓ Ensure remainder \(r\) satisfies \(0 \leq r < d\).
Why: Misunderstanding division algorithm conditions.
❌ Errors in base conversion by misplacing digits or incorrect division steps.
✓ Carefully track remainders and write digits in reverse order.
Why: Base conversion requires attention to order of digits.
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
Whole Numbers · 10 free messages
Ask me anything about this subtopic. You have 10 free messages this session — chat history isn't saved in preview.