Skip to content
Home » Basic counting principles

Basic counting principles

Here is a clear, simple, and exam-oriented explanation of Basic Counting Principles from Combinatorial Mathematics — perfect for BCA/MCA/engineering/discrete structures exams.


Basic Counting Principles

Counting principles help us determine the number of ways an event can occur without listing all possibilities.
They form the foundation of permutations, combinations, and probability.

There are two fundamental principles:

  1. Addition Principle (Rule of Sum)
  2. Multiplication Principle (Rule of Product)

Plus a few extensions which we will discuss.


1️⃣ Addition Principle (Rule of Sum)

If an event A can occur in m ways,
and another event B can occur in n ways,
and A and B cannot occur at the same time (mutually exclusive),

then the total number of ways is:

[
m + n
]

✔ Example 1

You can travel from your city to another by:

  • Bus: 5 ways
  • Train: 3 ways

Total ways = 5 + 3 = 8 ways

✔ Example 2

If a password can be:

  • A digit (10 options), or
  • A letter (26 options)

Total possibilities = 10 + 26 = 36


2️⃣ Multiplication Principle (Rule of Product)

If an event A can occur in m ways,
and another event B can occur in n ways,
and A and B occur together in sequence,

then total number of ways:

[
m \times n
]

✔ Example 1

A license plate has:

  • 2 letters (26 each)
  • 2 digits (10 each)

Total plates:

[
26 \times 26 \times 10 \times 10 = 67600
]

✔ Example 2

To choose a meal:

  • 3 starters
  • 4 main dishes

Total = (3 \times 4 = 12) ways


3️⃣ Generalized Addition Principle

If event E can occur in m₁ ways,
event F can occur in m₂ ways,
…,
event K can occur in mₖ ways,
and all events are mutually exclusive, then:

[
m_1 + m_2 + \cdots + m_k
]

Example

A survey asks people to choose:

  • Tea (20 choices)
  • Coffee (15 choices)
  • Juice (10 choices)

Total = 20 + 15 + 10 = 45


4️⃣ Generalized Multiplication Principle

If an experiment has k stages,
and stage i has mᵢ possible outcomes,
then total possible outcomes:

[
m_1 \cdot m_2 \cdot \cdots \cdot m_k
]

Example

A 3-character password:

  • First: letter (26 ways)
  • Second: digit (10 ways)
  • Third: special symbol (6 ways)

Total = (26 \times 10 \times 6 = 1560)


5️⃣ Subtraction Principle

Sometimes we count unwanted outcomes and subtract them.

[
\text{Total valid} = \text{Total possible} – \text{Unwanted}
]

Example

Three-digit numbers NOT divisible by 5:

Total 3-digit numbers: 900
Numbers divisible by 5: 180
Required = 900 − 180 = 720


6️⃣ Division Principle

If a procedure counts each outcome k times,
then number of actual distinct outcomes is:

[
\frac{\text{Total count}}{k}
]

Example

Number of unordered pairs from n items:

Counting ordered pairs = (n(n-1))
Each pair counted twice: (a,b) and (b,a)

Actual number = ( \frac{n(n-1)}{2} = \binom{n}{2} )


Why Counting Principles are Important?

They are used in:

✔ Permutations
✔ Combinations
✔ Probability
✔ Binomial theorem
✔ Graph algorithms
✔ Coding theory
✔ Data structures and algorithms
✔ Counting number of possible inputs
✔ Cryptography


Quick Exam Summary

Addition Principle

If tasks cannot happen together:
[
m + n
]

Multiplication Principle

If tasks happen in sequence:
[
m \cdot n
]

General forms

[
\sum m_i,\quad \prod m_i
]

Subtraction Principle

[
\text{Valid} = \text{Total} – \text{Invalid}
]

Division Principle

[
\text{Actual outcomes} = \frac{\text{Count}}{k}
]


✔ Want next?