Comprehensive Study Guide to Permutations and Combinations
Fundamental Principles of Counting
Multiplication Rule (Fundamental Principle of Multiplication):
- If an event can occur in different ways, following which another event can occur in different ways, then the total number of ways of simultaneous occurrence of both events in a definite order is .
- This rule extends naturally to any finite number of successive events: for events occurring in ways, the total combined ways are .
- Application (Route Connectivity): A person traveling from town to town via town , where there are roads from to and roads from to , has different routes available.
Addition Rule (Fundamental Principle of Addition):
- If an event can occur in ways and a second independent event mutually exclusive to the first can occur in ways, then either the first or the second event can occur in ways.
- Application (Independent Choice): A person positioned at town who simply needs to leave the town, having connecting routes back to and connecting routes to , has distinct ways to leave.
Cinema Hall Door Selection Problem:
- A cinema hall has distinct doors ().
- Entering and leaving by a different door: The person has choices to enter and choices to leave: ways.
- Entering and leaving by any door: The person has choices to enter and choices to leave: ways.
- Entering strictly by or and leaving strictly by , , or : The person has entrance options and exit options: ways.
Elementary Counting Problems:
- 3-digit numbers formed using the digits 1, 2, 3, 4, 5 without repetition: The hundreds place can be filled in ways, the tens place in ways, and the units place in ways. Total numbers = .
- Swimming competition podium finishes: In a race with competitors where no dead heat (tie) occurs, the first positions can be occupied in ways.
- Flag signals: Given flags of different colors, the number of distinct signals that can be transmitted using flags positioned vertically one above the other is .
- Monkeys and Masters distribution: If there are distinct monkeys and available masters, and each master can receive any number of monkeys, each monkey independently has options of masters. The total number of ways is .
Dictionary Rank of a Word (Rank of 'TOUGH'):
- Letters arranged in alphabetical order: .
- Words starting with : .
- Words starting with : .
- Words starting with : .
- Words starting with : .
- Words starting with : .
- Words starting with : .
- Words starting with : .
- Next word is : word in sequence.
- .
4-Letter Words from 'DAUGHTER' Containing the Letter 'G':
- The word 'DAUGHTER' consists of distinct letters.
- Method 1 (Direct Position Fixing): The letter 'G' can occupy the , , , or slot. For each fixed position, the remaining slots are chosen and arranged from the other letters in ways. Total words = .
- Method 2 (Complementary Counting): Total 4-letter words without restriction minus 4-letter words that do not contain 'G' = .
Meaning of Permutations and Combinations
- Permutation: Refers fundamentally to an arrangement of objects in a specific order, where sequence and relative position matter.
- Combination: Refers fundamentally to a selection or collection of objects chosen from a set, where order is entirely irrelevant.
Factorials and Legendre's Formula
Factorial Notation:
- Denoted by or , defined as the continued product of the first natural numbers:
- Recurrence relation: , which implies .
- Setting yields .
- Standard factorial values:
Properties of Factorial Sums:
- The sum of factorials for is never a perfect square.
- Verification:
- Since every factorial for has a units digit of , any sum for will terminate in the digit . No integer square terminates in .
Legendre's Formula (Exponent of a Prime in ):
- If is a prime number, the highest power (exponent) of dividing , denoted , is given by: continued until .
Applications of Legendre's Formula:
- Exponent of 2 in : If where is an odd integer:
- Highest power of 7 dividing : The largest such that is:
- Number of cyphers (trailing zeros) at the end of : Trailing zeros correspond to the exponent of , given by .
- Largest such that divides : Prime factorize . Exponent analysis: From , we require , and . Thus, the maximum value is .
Fundamental Theorems and Algebraic Properties
Theorem 1 (Linear Permutation of All Distinct Objects):
- The number of permutations of distinct objects taken all at a time is:
Theorem 2 (Linear Permutation of Distinct Objects Taken at a Time):
- The number of permutations of distinct objects taken at a time () is:
Theorem 3 (Combination / Selection):
- The number of ways to select objects from distinct objects () is:
Standard Identities and Notes:
- ,
- , ,
- Relation between permutation and combination:
- Equality rule: If , then either or
- Ratio property:
- Pascal's Identity: Combinatorial Interpretation: Choosing balls from distinct balls (including one pink ball) equals the count when the pink ball is excluded () plus the count when the pink ball is included ().
Geometric Combinatorics
Lines and Triangles from Coplanar Points:
- Straight lines from points (no 3 collinear): .
- Triangles from points (no 3 collinear): .
- Diagonals of an -sided polygon: Joining any two vertices produces a side or a diagonal: .
Points with Partial Collinearity (10 points in a plane, exactly 4 collinear):
- Straight lines formed:
- Method 1: .
- Method 2: Select 2 from the 6 non-collinear points (), or 1 from non-collinear and 1 from collinear (), plus the 1 single line containing the 4 collinear points: .
- Triangles formed:
- Method 1: Total possible triangles minus collinear sets: .
- Method 2: Partition by choice: .
- Straight lines formed:
Parallelograms Formed by Intersecting Parallel Lines:
- A set of parallel lines intersecting another set of parallel lines requires selecting lines from each set to construct a parallelogram: .
Pentagons Formed on Triangle Sides:
- Given : points on side (), points on side (), and points on side (). No point is a vertex of .
- To form a pentagon ( vertices), no more than points can be selected from any single side (collinear points cannot form polygon edges along the same line).
- Valid partitions of vertices across the three sides :
- Case 1 ():
- Case 2 ():
- Case 3 ():
- Total number of pentagons = .
Maximum Intersection Points Between Lines and Circles:
- Given straight lines and circles in a plane:
- Straight Line vs. Straight Line:
- Straight Line vs. Circle:
- Circle vs. Circle:
- Total maximum intersection points = .
- Given straight lines and circles in a plane:
Polygon Triangulation Relation:
- Let denote the total number of triangles formed by joining vertices of an -sided regular polygon ().
- If :
- The prime factorization of is .
- The distinct prime divisors of are and , and their sum is .
Linear Arrangements with Restrictions
Separation and Bundle Methods:
- Rainbow colors with Blue and Green never together: Arrange the different colors of the rainbow.
- Method 1 (Complementary): Total permutations minus arrangements where Blue and Green are together (bundled as 1 unit): .
- Method 2 (Gap Method): Arrange the other colors first in ways. This produces available gaps. Select gaps for Blue and Green and arrange them: . Total = .
- Queue of 4 boys and 3 girls with girls not all together: Total ways to line up persons minus ways where all girls form an unbroken block: .
- Rainbow colors with Blue and Green never together: Arrange the different colors of the rainbow.
Picnic Selection with Split Groups:
- Group A: boys, girls. Group B: boys, girls.
- Requirement: Invite boys and girls total, such that exactly individuals are chosen from Group A and individuals from Group B.
- Let and denote the selections from Groups A and B respectively:
Since , possible distributions are:
- Case 1 ():
- Case 2 ():
- Case 3 ():
- Total number of ways = .
Alphabetical Order Selection with Fixed Median:
- Five letters are chosen from the English alphabets and arranged strictly in alphabetical order such that the middle () letter is 'M'.
- The letter 'M' is the letter, preceded by letters (A to L) and followed by letters (N to Z).
- Select letters preceding 'M': .
- Select letters succeeding 'M': .
- Since alphabetical arrangement of chosen distinct letters is unique ( way), total ways = .
Selecting Three Numbers in Arithmetic Progression (A.P.):
- Select numbers from such that they form an A.P.
- The condition is , requiring to be even. This implies and must have identical parity (both even or both odd). Once and are selected, is uniquely determined.
- The set contains even numbers and odd numbers.
- Both odd: .
- Both even: .
- Total selections = .
- Alternative Common Difference () Method: For , there are triplets; for , ; for , ; down to , which gives . Total = .
Non-Consecutive Train Stops (Gap Method):
- A train has enroute stations and must stop at of them such that no two stopping stations are consecutive.
- Non-stopping stations = .
- Placing the non-stopping stations creates gaps.
- Choosing gaps for the stopping stations yields:
Formation of Groups and Distribution
Division of Distinct Objects into Groups:
- Division of distinct objects into two groups of sizes and :
- If :
- If :
- Division of distinct objects into three groups:
- If are all distinct:
- If :
- If two groups are of equal size and one is distinct (e.g., sizes from objects):
- General Rule for Division: When groups have identical sizes, divide by to eliminate duplicate groupings because the groups themselves are unlabelled.
- Distribution to Distinct Recipients: If the groups are subsequently assigned to distinct entities, multiply the division count by .
- Division of distinct objects into two groups of sizes and :
Grouping Applications:
- 30 Jawans Grouping and Deputation:
- Number of ways to divide Jawans into equal groups of : .
- Number of ways to depute Jawans equally across distinct borders ( on each border): .
- Distribution of 6 Different Books to 3 Children (Each Gets At Least 1):
- Integer partitions of into non-zero parts:
- Type :
- Type :
- Type :
- Total ways = .
- Integer partitions of into non-zero parts:
- 4 Different Books into 3 Different Bags (None Empty):
- Partition of into parts: .
- Number of ways = .
- Seating 8 Persons in 3 Distinct Taxis (Each having 3 seats):
- Partition of people into capacities .
- Internal arrangement immaterial: Grouping and assigning to taxis = .
- Internal arrangement matters (distinct seats inside taxis): Multiply by the seat arrangements within each taxi ():
- Assigning 45 Volunteers to 3 Distinct Districts (Requiring 20, 15, and 10):
- Because group sizes are distinct () and designated for specific distinct districts, the assignment is:
- 30 Jawans Grouping and Deputation:
Permutations of Alike Objects
General Permutation Formula for Alike Objects:
- The number of permutations of objects taken all at a time, where are alike of the kind, are alike of the kind, are alike of the kind, and the remaining are distinct, is:
- Arrangements of 'DADDY': letters () .
- Arrangements of 'MAHABHARAT': letters () .
Constrained Number Formation Problems:
- JEE Main Problem ():
- Let denote 4-digit numbers such that . Any choice of distinct digits from has exactly strictly decreasing arrangement. Since , the leading digit can never be . Thus:
- Let denote 5-digit numbers whose product of digits is . The multiset of non-zero digits can be:
- .
- 7-digit numbers using 1, 2, 3, 5, 7 with each digit used at least once:
- The slots must be partitioned across the digits:
- Case 1 (): Choose digit to repeat thrice (): .
- Case 2 (): Choose digits to repeat twice (): .
- Total numbers = .
- The slots must be partitioned across the digits:
- Badminton Series Problem: Players A and B play until one wins games. Number of ways A wins the series:
- If A wins in games (), A must win the final game, and exactly of the preceding games:
- 7-digit numbers using only 1, 2, 3 with digit sum equal to 11:
- Let denote the frequency of digits respectively: and . Subtracting gives .
- If (digits: ): .
- If (digits: ): .
- If (digits: ): .
- Total numbers = .
- JEE Main Problem ():
Permutations of Alike Objects Taken Some at a Time:
- Selection of 5 letters from 'MISSISSIPPI' ():
- 4 alike + 1 different: Choose 4 alike from (), and 1 different from remaining types (): .
- 3 alike + 2 alike: Choose 3 alike from (), and 2 alike from remaining types (): .
- 3 alike + 2 different: Choose 3 alike from (), and 2 different from remaining types (): .
- 2 alike + 2 alike + 1 different: Choose two pairs from (), and 1 different from remaining types (): .
- 2 alike + 3 different: Choose 1 pair from (), and 3 different from remaining types (): .
- Total selections = .
- 4-letter words from letters of 'PQRPQRSTUVP':
- Counts: . Total = letters across distinct types.
- 3 alike + 1 different: Selection = . Arrangements = .
- 2 alike + 2 other alike: Selection from . Arrangements = .
- 2 alike + 2 different: Selection = . Arrangements = .
- All 4 different: Selection = . Arrangements = .
- Total words = .
- Selection of 5 letters from 'MISSISSIPPI' ():
Circular Permutations
Distinction Between Linear and Circular Permutations:
- In a circle, there is no designated beginning or end. A rotation of all elements maintains identical relative cyclical positions. For elements, each circular arrangement corresponds to distinct linear arrangements.
- Number of circular permutations of distinct objects taken all at a time:
- Taken at a time:
- Indistinguishable Clockwise and Anticlockwise Arrangements (e.g., Necklaces, Garlands):
- When flipping the arrangement over renders clockwise and anticlockwise identical, the total is halved:
Circular Problems:
- 7 Americans and 7 British seated alternately at a round table: Arrange the 7 British persons in a circle in ways. This produces 7 alternating gaps. The 7 Americans can be seated in these gaps in ways. Total = .
- 8 persons with no identical neighbors in any two seatings: Since left-to-right neighbor reversal is considered the same neighborhood arrangement, clockwise and anticlockwise are treated as identical: .
- 8 persons seated with two particular individuals never together:
- Method 1: Total circular arrangements minus together: .
- Method 2: Seat remaining 6 people in ways, leaving 6 gaps. Seat the two specific individuals into 2 of the 6 gaps in ways: .
- Garlands of 6 flowers chosen from 10 distinct flowers: Choose flowers in ways. Form circular garlands: . Total = .
Hexagons from a 15-gon with No Shared Sides (Circular Gap Selection):
- Number of ways to choose non-consecutive vertices from an -sided regular polygon in a circle is given by .
- For and :
- Alternative Fixed-Point Analysis: If vertex is chosen, the remaining vertices are selected from non-consecutive linear positions (). If is excluded, vertices are selected from non-consecutive linear positions (). Total = .
Total Number of Selections and Divisors of Numbers
Total Number of Combinations:
- From distinct objects: The number of ways to select at least one object is:
- From alike and distinct objects: Given alike of one kind, alike of another, alike of a third, and distinct objects, the number of ways to select at least one object is:
Applications to Selection Problems:
- Books on Subjects (3 Maths, 4 Physics, 5 Chemistry, all distinct):
- Exactly one book of each subject: .
- At least one book of each subject: .
- At least one book overall: .
- Fruit Selection (2 Bananas, 3 Mangoes, 4 Apples, identical within species):
- At least one fruit: .
- At least one fruit of each species: .
- Selecting from different books with identical copies each: Each book provides options ( copies). Selecting at least one book = .
- Books on Subjects (3 Maths, 4 Physics, 5 Chemistry, all distinct):
Properties and Divisors of :
- Prime factorization: .
- General form of any divisor: where , , , .
- Counts of Divisors:
- Total divisors: .
- Odd divisors (): .
- Even divisors (): .
- Divisors divisible by 5 (): .
- Divisors divisible by 10 (): .
- Divisors of form (): .
- Sums of Divisors:
- Sum of all divisors: .
- Sum of odd divisors: .
- Sum of even divisors: .
- Sum of divisors divisible by 5: .
- Sum of divisors divisible by 10: .
- Sum of divisors of form : .
Resolution of a Number into Factors:
- Number of ways to resolve as a product of two divisors:
- if (total number of divisors) is even (when is not a perfect square).
- if is odd (when is a perfect square, allowing two equal factors).
- Resolution into Relatively Prime Factors: The number of ways to resolve into a product of two co-prime factors is , where is the number of distinct prime factors in the prime factorization of .
- Application: For , there are distinct primes (). The number of ways to resolve into two co-prime divisors is .
- Number of ways to resolve as a product of two divisors:
Summation of Numbers
Sum of Numbers Formed with Distinct Digits:
- Problem: Find the sum of all numbers greater than formed using digits without repetition.
- Total 5-digit numbers = .
- Each digit occupies each place value (units, tens, hundreds, thousands, ten-thousands) exactly times.
- Sum of digits in any place value: .
- Total sum = .
Sum of Numbers Formed with Repeated Digits:
- Problem: Sum of all numbers formed using all digits .
- Total 6-digit numbers = .
- Position frequencies for each digit:
- Digit 2: Remaining digits are times.
- Digit 3: Remaining digits are times.
- Digit 4: Remaining digits are times.
- Sum of digits at any positional column = .
- Total sum = .
Distribution of Alike Objects and Integral Solutions
Beggar's Method (Stars and Bars):
- Non-negative integral solutions: The number of ways to distribute identical objects among persons (where each person receives zero, one, or more) equals the number of non-negative integer solutions to :
- Positive integral solutions: The number of ways to distribute identical objects among persons such that each receives at least object (natural number solutions to with ) is:
Applications to Distribution and Inequalities:
- 12 identical marbles into 6 separate non-empty compartments: Natural number distribution: .
- Natural number solutions to (): .
- Non-negative integral solutions to : Introduce dummy slack variable such that . Total solutions = .
- Integer points strictly inside the triangle bounded by , , : Requires and . Setting transforms this to in positive integers. Total points = .
- 16 identical oranges to 4 children (each gets at least 1): .
- Selecting 10 balls from unlimited Red, White, Black, Green balls: Non-negative solutions to gives .
- Selecting 10 balls containing all 4 colors: Positive solutions to gives .
- Selecting 4 ice creams from 10 varieties (unlimited stock): Non-negative solutions to gives .
- Distributing 10 identical red pens and 14 identical blue pens among 4 persons (each receives exactly 6 pens):
- Let person receive red pens. Then they receive blue pens.
- subject to .
- Total non-negative solutions without upper bound: .
- Subtract cases where some . Since , at most one person can violate this. Choose the person () and assign red pens to them (). Remaining equation: , which has solutions.
- Invalid solutions = .
- Valid ways = .
Maximization of Binomial Coefficients
Maximizing with Fixed :
- If is even, achieves its unique maximum at .
- If is odd, achieves its maximum at two values: and .
Maximization Applications:
- *Difference between maximum of and maximum of ^{12} C_r$:* For n = 15r = 78^{15} C_7^{15} C_8n = 12r = 6^{12} C_6^{15} C_7 - {^{12} C_6}.\n * *Arranging 2nabra2n - rb\frac{(2n)!}{r!(2n - r)!} = {^{2n} C_r}2nr = n^{2n} C_n.\n * *Party Invitations from 20 Friends:* To host the maximum number of distinct parties by calling the same number r^{20} C_r20r = \frac{20}{2} = 10.\n\n# Grid Path Problems\n\n* **Shortest Path Along a Grid:**\n * A Cartesian plane is partitioned by integer grid lines parallel to the coordinate axes.\n * To travel from (0,0)(9,7)9H7V).\n * Total steps = 9 + 7 = 16.\n * The total number of shortest paths is given by the permutations of 9H7V's:\n \frac{16!}{9! \cdot 7!} = {^{16} C_9} = {^{16} C_7}\n\n# Derangements and Applications\n\n* **Derangement Formula:**\n * A derangement is a permutation of n elements such that none of the elements appears in its original or natural position.\n * Formula for D(n)n objects:\n D(n) = n! \left[ 1 - \frac{1}{1!} + \frac{1}{2!} - \frac{1}{3!} + \frac{1}{4!} - \dots + \frac{(-1)^n}{n!} \right] = n! \sum_{k=2}^n \frac{(-1)^k}{k!}\n * *Standard Derangement Values:*\n * D(1) = 0\n * D(2) = 1\n * D(3) = 2\n * D(4) = 9\n * D(5) = 44\n * D(6) = 265\n * *Evaluation of D(4)D(4) = 24 \left( \frac{1}{2} - \frac{1}{6} + \frac{1}{24} \right) = 12 - 4 + 1 = 9.\n\n* **Examination Scoring Problem via Derangement:**\n * A test contains 6+2-1 mark is deducted.\n * Let RWR + W = 62R - W = 2R - (6 - R) = 3R - 6.\n * We require non-negative marks (3R - 6 \ge 0 \implies R \ge 2):\n * R = 6, W = 0+12\implies 1 way.\n * R = 5, W = 1\implies 0 ways.\n * R = 4, W = 2+6^6 C_4 = 15D(2) = 1\implies 15 \times 1 = 15 ways.\n * R = 3, W = 3+3^6 C_3 = 20D(3) = 2\implies 20 \times 2 = 40 ways.\n * R = 2, W = 40^6 C_2 = 15D(4) = 9\implies 15 \times 9 = 135 ways.\n * Total number of ways to achieve a non-negative score = 1 + 0 + 15 + 40 + 135 = 191.\n\n# Multiplicative Partitions\n\n* **Positive Integral Solutions of xyz = 24:**\n * Prime factorize 24 = 2^3 \times 3^1.\n * Let x = 2^{a_1} 3^{b_1}y = 2^{a_2} 3^{b_2}z = 2^{a_3} 3^{b_3}.\n * This generates two independent non-negative integral systems:\n a_1 + a_2 + a_3 = 3\n b_1 + b_2 + b_3 = 1\n * Solutions for exponents of 2: ^{3+3-1} C_{3-1} = {^5 C_2} = 10.\n * Solutions for exponents of 3: ^{1+3-1} C_{3-1} = {^3 C_2} = 3.\n * By the multiplication principle, the total number of positive integral solutions is 10 \times 3 = 30$$.