ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Discrete Mathematics
    MATH2113
    Progress0 / 25 topics
    Topics
    1. Mathematical Reasoning: Sets, Subsets, Algebra of Sets2. Propositions and Compound Statements3. Basic Logical Operations4. Propositional Logic and its Applications with Statement Problems5. Propositions and Truth Tables6. Tautologies and Contradictions7. Conditional and Bi-conditional Statements8. Arguments in Propositional Logic9. Propositional Functions10. Quantifiers and Negation of Quantified Statements11. Relations and Equivalence Relations12. Partial Ordering Relations13. Functions and Recursively Defined Functions14. Combinatorics: Basics of Counting Methods15. Combinations and Permutations16. Pigeonhole Principle17. Graphs and its Types18. Graph Isomorphism19. Trees in Graph Theory20. Connectivity in Graphs21. Eulerian and Hamiltonian Paths22. Spanning Trees and Shortest Path Problem23. Revisiting Special Functions: Power, Floor, Increasing, Decreasing24. Big O, Little O and Omega Notations25. Orders of the Polynomial Functions
    MATH2113›Combinatorics: Basics of Counting Methods
    Discrete MathematicsTopic 14 of 25

    Combinatorics: Basics of Counting Methods

    11 minread
    1,948words
    Intermediatelevel

    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 load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time11 min
      Word count1,948
      Code examples0
      DifficultyIntermediate