ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalMATH2113Combinatorics Basics
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    MATH2113

    Discrete Mathematics

    Progress0 / 25 done
    Topics25
    1Sets, Subsets, Algebra of Sets2Propositions and Compound Statements3Basic Logical Operations4Propositional Logic and its Applications with Statement Problems5Propositions and Truth Tables6Tautologies and Contradictions7Conditional and Bi-conditional Statements8Arguments in Propositional Logic9Propositional Functions10Quantifiers and Negation of Quantified Statements11Relations and Equivalence Relations12Partial Ordering Relations13Functions and Recursively Defined Functions
    14Basics of Counting Methods15Combinations and Permutations16Pigeonhole Principle17Graphs and its Types18Graph Isomorphism19Trees in Graph Theory20Connectivity in Graphs21Eulerian and Hamiltonian Paths22Spanning Trees and Shortest Path Problem
    23Power, Floor, Increasing, Decreasing24Big O, Little O and Omega Notations25Orders of the Polynomial Functions
    11 min read
    Topic 14 of 25
    Topic Study Note Illustration
    14

    Combinatorics: Basics of Counting Methods

    Combinatorics: Basics of Counting Methods


    Combinatorics: Basics of Counting Methods


    Combinatorics is a branch of mathematics that focuses on counting, arrangement, and combination of elements in sets, often subject to specific constraints. It is a fundamental area of mathematics with wide applications in fields such as computer science, statistics, and optimization.

    1. Basic Counting Principles

    Before delving into more complex counting methods, let's start with the basic principles of counting:

    a) The Addition Principle (Sum Rule)

    If a task can be completed in two mutually exclusive ways, the total number of ways to complete the task is the sum of the individual ways.

    • Example:
      Suppose you have 3 shirts and 4 pants. The total number of outfits you can wear is given by:
    Total outfits=3 (shirts)+4 (pants)=7 outfits\text{Total outfits} = 3 \, \text{(shirts)} + 4 \, \text{(pants)} = 7 \, \text{outfits}Total outfits=3(shirts)+4(pants)=7outfits

    b) The Multiplication Principle (Product Rule)

    If a task can be completed in multiple stages and the number of ways to complete each stage is known, the total number of ways to complete the task is the product of the number of ways for each stage.

    • Example:
      If you have 3 shirts and 4 pants, the total number of outfits you can create is:
    Total outfits=3 (shirts)×4 (pants)=12 outfits\text{Total outfits} = 3 \, \text{(shirts)} \times 4 \, \text{(pants)} = 12 \, \text{outfits}Total outfits=3(shirts)×4(pants)=12outfits

    This means you can pair any shirt with any pair of pants, resulting in 12 possible outfits.


    2. Factorial Notation

    Factorial, denoted as n!n!n!, is the product of all positive integers from 1 to nnn. It is often used in counting arrangements and permutations.

    n!=n×(n−1)×(n−2)×⋯×1n! = n \times (n-1) \times (n-2) \times \cdots \times 1n!=n×(n−1)×(n−2)×⋯×1
    • Example:
      The number of ways to arrange 3 objects (say A, B, C) in a sequence is given by 3!3!3!:
    3!=3×2×1=6(the arrangements are ABC, ACB, BAC, BCA, CAB, CBA)3! = 3 \times 2 \times 1 = 6 \quad \text{(the arrangements are ABC, ACB, BAC, BCA, CAB, CBA)}3!=3×2×1=6(the arrangements are ABC, ACB, BAC, BCA, CAB, CBA)

    3. Permutations

    A permutation refers to an arrangement of objects in a specific order. The number of ways to arrange rrr objects from a set of nnn distinct objects (where order matters) is given by the formula for permutations:

    P(n,r)=n!(n−r)!P(n, r) = \frac{n!}{(n-r)!}P(n,r)=(n−r)!n!​
    • Example:
      Suppose you want to arrange 2 books from a shelf of 4 books. The number of ways to do this is:
    P(4,2)=4!(4−2)!=4×3×2!2!=12P(4, 2) = \frac{4!}{(4-2)!} = \frac{4 \times 3 \times 2!}{2!} = 12P(4,2)=(4−2)!4!​=2!4×3×2!​=12

    This means you can select and arrange 2 books from 4 books in 12 different ways.


    4. Combinations

    A combination refers to selecting a subset of objects where the order does not matter. The number of ways to select rrr objects from a set of nnn distinct objects is given by the combination formula:

    C(n,r)=(nr)=n!r!(n−r)!C(n, r) = \binom{n}{r} = \frac{n!}{r!(n-r)!}C(n,r)=(rn​)=r!(n−r)!n!​
    • Example:
      Suppose you want to choose 2 books from a shelf of 4 books, but the order doesn't matter. The number of ways to do this is:
    C(4,2)=4!2!(4−2)!=4×32×1=6C(4, 2) = \frac{4!}{2!(4-2)!} = \frac{4 \times 3}{2 \times 1} = 6C(4,2)=2!(4−2)!4!​=2×14×3​=6

    This means you can select 2 books from 4 books in 6 different ways, where the order of the selected books doesn't matter.


    5. The Binomial Theorem

    The binomial theorem describes the expansion of a binomial raised to a power. It states that:

    (x+y)n=∑r=0n(nr)xn−ryr(x + y)^n = \sum_{r=0}^{n} \binom{n}{r} x^{n-r} y^r(x+y)n=r=0∑n​(rn​)xn−ryr

    Where:

    • (nr)\binom{n}{r}(rn​) is the combination, i.e., the number of ways to choose rrr objects from nnn objects.

    Example:

    To expand (x+y)3(x + y)^3(x+y)3, we use the binomial theorem:

    (x+y)3=(30)x3+(31)x2y+(32)xy2+(33)y3(x + y)^3 = \binom{3}{0}x^3 + \binom{3}{1}x^2y + \binom{3}{2}xy^2 + \binom{3}{3}y^3(x+y)3=(03​)x3+(13​)x2y+(23​)xy2+(33​)y3

    This simplifies to:

    (x+y)3=x3+3x2y+3xy2+y3(x + y)^3 = x^3 + 3x^2y + 3xy^2 + y^3(x+y)3=x3+3x2y+3xy2+y3

    This theorem has widespread applications in algebra, probability, and combinatorics.


    6. Multinomial Coefficient

    The multinomial coefficient is a generalization of the binomial coefficient for cases where you have more than two groups of objects. It is used to count the number of ways to partition a set of nnn objects into kkk groups.

    The number of ways to partition nnn objects into kkk groups of sizes n1,n2,…,nkn_1, n_2, \dots, n_kn1​,n2​,…,nk​ is given by:

    (nn1,n2,…,nk)=n!n1!n2!…nk!\binom{n}{n_1, n_2, \dots, n_k} = \frac{n!}{n_1! n_2! \dots n_k!}(n1​,n2​,…,nk​n​)=n1​!n2​!…nk​!n!​

    Example:

    Suppose you have 10 objects, and you want to divide them into 3 groups of 4, 3, and 3 objects. The number of ways to do this is:

    (104,3,3)=10!4!3!3!=10×9×8×7×6!4!×3!×3!\binom{10}{4, 3, 3} = \frac{10!}{4!3!3!} = \frac{10 \times 9 \times 8 \times 7 \times 6!}{4! \times 3! \times 3!}(4,3,310​)=4!3!3!10!​=4!×3!×3!10×9×8×7×6!​

    This formula helps calculate the number of ways to distribute objects when there are multiple categories.


    7. Pigeonhole Principle

    The pigeonhole principle is a simple yet powerful counting argument. It states that if more objects are distributed into fewer boxes than the number of objects, then at least one box must contain more than one object.

    Example:

    If you have 11 pigeons and 10 pigeonholes, at least one pigeonhole must contain more than one pigeon.

    This principle is often used in proofs and problem-solving, especially in combinatorics and number theory.


    8. Inclusion-Exclusion Principle

    The inclusion-exclusion principle is used to count the number of elements in the union of several sets. It corrects for over-counting when elements belong to multiple sets.

    For two sets AAA and BBB, the principle is:

    ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A \cup B| = |A| + |B| - |A \cap B|∣A∪B∣=∣A∣+∣B∣−∣A∩B∣

    For three sets AAA, BBB, and CCC, it is:

    ∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣B∩C∣−∣A∩C∣+∣A∩B∩C∣|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |B \cap C| - |A \cap C| + |A \cap B \cap C|∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣B∩C∣−∣A∩C∣+∣A∩B∩C∣

    This principle can be extended to any number of sets and is extremely useful in counting complex events.


    9. Stirling Numbers

    The Stirling numbers of the second kind, denoted S(n,k)S(n, k)S(n,k), count the number of ways to partition a set of nnn elements into kkk non-empty subsets.

    Example:

    For S(3,2)S(3, 2)S(3,2), the number of ways to partition 3 objects into 2 non-empty subsets is 3 (e.g., {1, 2}, {3}; {1, 3}, {2}; {2, 3}, {1}).


    Summary of Counting Methods:

    • Addition Principle: Add the possibilities for mutually exclusive tasks.
    • Multiplication Principle: Multiply the possibilities for sequential tasks.
    • Factorial: Used for counting the number of arrangements.
    • Permutations: Arrangements where order matters.
    • Combinations: Selections where order doesn’t matter.
    • Binomial Theorem: Expanding binomials.
    • Multinomial Coefficients: Generalizing combinations for multiple groups.
    • Pigeonhole Principle: If there are more items than containers, some containers must hold more than one item.
    • Inclusion-Exclusion: Counting the union of sets while avoiding over-counting.
    • Stirling Numbers: Counting partitions of a set into subsets.

    These counting techniques form the foundation of combinatorics and are essential for solving problems related to arrangements, selections, and probability.

    ← Previous topic 13
    Functions and Recursively Defined Functions
    Next topic 15 →
    Combinations and Permutations

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    11mremaining
    1.9kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Discrete Mathematics