Combinatorics is the study of counting, grouping, and arrangement. In the context of competitive examinations like GATE, the focus is on visualizing the selection process rather than just applying formulas.
Rule of Sum (OR): If task A can be done in \(m\) ways and task B in \(n\) ways, and they are mutually exclusive, then A or B can be done in \(m + n\) ways.
Rule of Product (AND): If task A can be done in \(m\) ways and task B in \(n\) ways independently, then the sequence A followed by B can be done in \(m \times n\) ways.
2. Permutations (P): Order Matters
Permutations are used when the arrangement of items is significant, such as in seating arrangements or word formation.
Standard Linear Permutation
Arranging \(r\) items from a set of \(n\) distinct items:
$$P(n, r) = \frac{n!}{(n-r)!}$$
Permutations with Repetition
If you have \(n\) items where \(n_1\) are of type 1, \(n_2\) are of type 2, and so on: