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 Structures
    GE-167
    Progress0 / 67 topics
    Topics
    1. Mathematical Reasoning: Propositional and Predicate Logic2. Propositional Logic: Logical Operators3. Translations Between Symbolic Expressions and Formal English Expression4. Logical Equivalences5. Predicate Logic: Quantifiers6. Nested Quantification7. Equivalences in Predicate Logic8. Translations Between Symbolic Forms and Formal English9. Rules of Inference: Proof Methods and Strategies10. Direct Proof11. Proof by Contraposition12. Proof by Induction13. Proof by Implication14. Existence Proof15. Uniqueness Proofs16. Trivial Proofs17. Vacuous Proofs18. Sets: Notations and Set Operations19. Venn Diagrams20. Countable and Uncountable Sets21. Relations: Equivalence Relations and Partitions22. Partial Orderings23. Recurrence Relations24. Functions: Injective, Surjective, Bijective25. Special Types of Functions26. Function Composition27. Inverse Functions28. Recursive Functions29. Compositions30. Number Theory: Sequences and Series31. Counting: Inclusion and Exclusion Principle32. Pigeonhole Principle33. Permutations and Combinations34. Integers and Divisibility: Division Theorem35. Modular Arithmetic36. LCM and GCD37. Euclidean and Extended Euclidean Method38. Finding Solutions to Congruence39. Primes: Fundamental Theorem of Arithmetic40. Characterizations of Primes41. Mersenne Primes42. Induction: Weak Induction43. Strong Induction44. Recursion and Recurrences: Formulation of Recurrences45. Closed Formulas46. Counting: Product Rule and Sum Rule47. Principle of Inclusion-Exclusion48. Binomial Coefficients49. Pascal's Identity and Pascal’s Triangle50. Binomial Theorem51. Relations: Reflexive, Symmetric, Transitive, and Antisymmetric52. Equivalence Relations and Equivalence Classes53. Partial Orders54. Graph Theory: Terminologies55. Elements of Graph Theory56. Planar Graphs57. Graph Coloring58. Euler Graph59. Hamiltonian Path60. Rooted Trees61. Graph Traversals62. Handshaking Lemma and Corollary63. Special Families of Graphs64. Graph Isomorphism65. Planarity in Graphs66. Eulerian and Hamiltonian Graphs67. Trees in Graph Theory
    GE-167›Permutations and Combinations
    Discrete StructuresTopic 33 of 67

    Permutations and Combinations

    11 minread
    1,859words
    Intermediatelevel

    Permutations and Combinations

    Permutations and combinations are fundamental concepts in combinatorics, which is the branch of mathematics focused on counting, arrangement, and selection. They are used to solve problems involving the arrangement and selection of objects.

    1. Permutations

    A permutation is an arrangement of objects in a specific order. When the order of the objects matters, we use permutations. The number of permutations of a set of objects depends on the total number of objects and whether or not repetition is allowed.

    a. Permutations of nnn distinct objects

    The number of ways to arrange nnn distinct objects in a sequence is called the factorial of nnn, denoted as n!n!n!.

    The formula for n!n!n! is:

    n!=n×(n−1)×(n−2)×⋯×2×1n! = n \times (n-1) \times (n-2) \times \cdots \times 2 \times 1n!=n×(n−1)×(n−2)×⋯×2×1

    For example:

    • 3!=3×2×1=63! = 3 \times 2 \times 1 = 63!=3×2×1=6
    • 5!=5×4×3×2×1=1205! = 5 \times 4 \times 3 \times 2 \times 1 = 1205!=5×4×3×2×1=120

    b. Permutations of rrr objects from nnn distinct objects (without repetition)

    If we want to arrange rrr objects out of nnn distinct objects, the number of permutations is given by:

    P(n,r)=n!(n−r)!P(n, r) = \frac{n!}{(n - r)!}P(n,r)=(n−r)!n!​

    Where:

    • P(n,r)P(n, r)P(n,r) is the number of ways to arrange rrr objects from nnn distinct objects,
    • n!n!n! is the factorial of nnn,
    • (n−r)!(n - r)!(n−r)! accounts for the unused objects.

    Example: How many ways can you arrange 3 objects out of 5 distinct objects?

    P(5,3)=5!(5−3)!=5!2!=5×4×3×2!2!=5×4×3=60P(5, 3) = \frac{5!}{(5 - 3)!} = \frac{5!}{2!} = \frac{5 \times 4 \times 3 \times 2!}{2!} = 5 \times 4 \times 3 = 60P(5,3)=(5−3)!5!​=2!5!​=2!5×4×3×2!​=5×4×3=60

    So, there are 60 ways to arrange 3 objects from 5 distinct objects.

    c. Permutations with repetition

    If repetition is allowed, the number of ways to arrange rrr objects from nnn distinct objects is:

    Pwith repetition=nrP_{\text{with repetition}} = n^rPwith repetition​=nr

    Where:

    • nrn^rnr represents the number of ways to choose each object from nnn options rrr times.

    Example: How many ways can you form a 3-digit number if repetition of digits is allowed and the digits range from 0 to 9?

    Pwith repetition=103=1000P_{\text{with repetition}} = 10^3 = 1000Pwith repetition​=103=1000

    So, there are 1000 possible 3-digit numbers.


    2. Combinations

    A combination is a selection of objects where the order does not matter. When the order is irrelevant, we use combinations to count the number of ways to choose rrr objects from nnn distinct objects.

    a. Combinations of rrr objects from nnn distinct objects

    The number of ways to choose rrr objects from nnn distinct objects (without regard to order) is given by the binomial coefficient:

    C(n,r)=n!r!(n−r)!C(n, r) = \frac{n!}{r!(n - r)!}C(n,r)=r!(n−r)!n!​

    Where:

    • C(n,r)C(n, r)C(n,r) is the number of combinations,
    • n!n!n! is the factorial of nnn,
    • r!r!r! is the factorial of rrr,
    • (n−r)!(n - r)!(n−r)! accounts for the unused objects.

    This formula counts the ways to choose rrr objects from nnn objects without considering the order of selection.

    Example: How many ways can you choose 3 objects from a set of 5 distinct objects?

    C(5,3)=5!3!(5−3)!=5!3!2!=5×4×3!3!×2!=5×42×1=10C(5, 3) = \frac{5!}{3!(5 - 3)!} = \frac{5!}{3!2!} = \frac{5 \times 4 \times 3!}{3! \times 2!} = \frac{5 \times 4}{2 \times 1} = 10C(5,3)=3!(5−3)!5!​=3!2!5!​=3!×2!5×4×3!​=2×15×4​=10

    So, there are 10 ways to choose 3 objects from 5 distinct objects.

    b. Combinations with repetition (multiset combinations)

    If repetition of elements is allowed, the formula for combinations changes. The number of ways to choose rrr objects from nnn distinct objects, where repetition is allowed, is given by:

    Cwith repetition(n,r)=(n+r−1)!r!(n−1)!C_{\text{with repetition}}(n, r) = \frac{(n + r - 1)!}{r!(n - 1)!}Cwith repetition​(n,r)=r!(n−1)!(n+r−1)!​

    This is sometimes called the "stars and bars" formula, and it's used when you want to count the number of ways to distribute rrr identical objects into nnn distinct bins.

    Example: How many ways can you choose 3 objects (with repetition allowed) from 5 distinct objects?

    Cwith repetition(5,3)=(5+3−1)!3!(5−1)!=7!3!4!=7×6×53×2×1=35C_{\text{with repetition}}(5, 3) = \frac{(5 + 3 - 1)!}{3!(5 - 1)!} = \frac{7!}{3!4!} = \frac{7 \times 6 \times 5}{3 \times 2 \times 1} = 35Cwith repetition​(5,3)=3!(5−1)!(5+3−1)!​=3!4!7!​=3×2×17×6×5​=35

    So, there are 35 ways to choose 3 objects from 5 distinct objects if repetition is allowed.


    3. Important Properties and Formulas

    • Factorial properties:

      • 0!=10! = 10!=1
      • n!=n×(n−1)!n! = n \times (n - 1)!n!=n×(n−1)!
    • Symmetry property of combinations:

      C(n,r)=C(n,n−r)C(n, r) = C(n, n - r)C(n,r)=C(n,n−r)

      This means that choosing rrr objects from nnn objects is the same as choosing the remaining n−rn - rn−r objects.

    • Pascal's Triangle: The binomial coefficients C(n,r)C(n, r)C(n,r) can be arranged in a triangular array, known as Pascal's Triangle, where each number is the sum of the two directly above it:

      C(n,r)=C(n−1,r−1)+C(n−1,r)C(n, r) = C(n - 1, r - 1) + C(n - 1, r)C(n,r)=C(n−1,r−1)+C(n−1,r)

      Pascal’s Triangle is helpful for quick reference and also for expanding binomials.

    • Binomial Theorem: The binomial theorem gives the expansion of (x+y)n(x + y)^n(x+y)n:

      (x+y)n=∑r=0nC(n,r)xn−ryr(x + y)^n = \sum_{r=0}^{n} C(n, r) x^{n-r} y^r(x+y)n=r=0∑n​C(n,r)xn−ryr

      This uses combinations to find the coefficients in the expansion.


    4. Applications of Permutations and Combinations

    1. Counting arrangements: Permutations are used to count how many ways objects can be arranged in order. This is useful in problems where order matters, such as seating arrangements, scheduling, and password generation.

    2. Selecting groups: Combinations are used to count how many ways you can select a group of objects from a larger set, where the order does not matter. This is useful in problems like choosing committees, team selections, and lottery numbers.

    3. Probability: Permutations and combinations are essential in probability theory. For example, they are used to calculate the probability of certain events in games of chance, like drawing cards from a deck or rolling dice.

    4. Optimization problems: In optimization and game theory, permutations and combinations are used to find the best arrangement or selection out of many possibilities.

    5. Discrete structures: In computer science, especially in algorithms and data structures, permutations and combinations are applied in areas such as hashing, cryptography, and network design.


    5. Conclusion

    Permutations and combinations are core concepts in combinatorics, providing methods to count the number of ways objects can be arranged or selected. Permutations are used when the order of selection matters, while combinations are used when the order is not important. These concepts have broad applications in various fields, including mathematics, computer science, probability, and optimization. Mastery of these techniques is essential for solving counting problems efficiently.

    Previous topic 32
    Pigeonhole Principle
    Next topic 34
    Integers and Divisibility: Division Theorem

    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,859
      Code examples0
      DifficultyIntermediate