Comprehensive Study Guide to Permutations and Combinations

Fundamental Principles of Counting

  • Multiplication Rule (Fundamental Principle of Multiplication):

    • If an event can occur in mm different ways, following which another event can occur in nn different ways, then the total number of ways of simultaneous occurrence of both events in a definite order is m×nm \times n.
    • This rule extends naturally to any finite number of successive events: for events occurring in m1,m2,…,mkm_1, m_2, \dots, m_k ways, the total combined ways are m1×m2×⋯×mkm_1 \times m_2 \times \dots \times m_k.
    • Application (Route Connectivity): A person traveling from town T1T_1 to town T3T_3 via town T2T_2, where there are 33 roads from T1T_1 to T2T_2 and 22 roads from T2T_2 to T3T_3, has 3×2=63 \times 2 = 6 different routes available.
  • Addition Rule (Fundamental Principle of Addition):

    • If an event can occur in mm ways and a second independent event mutually exclusive to the first can occur in nn ways, then either the first or the second event can occur in m+nm + n ways.
    • Application (Independent Choice): A person positioned at town T2T_2 who simply needs to leave the town, having 33 connecting routes back to T1T_1 and 22 connecting routes to T3T_3, has 3+2=53 + 2 = 5 distinct ways to leave.
  • Cinema Hall Door Selection Problem:

    • A cinema hall has 55 distinct doors (D1,D2,D3,D4,D5D_1, D_2, D_3, D_4, D_5).
    • Entering and leaving by a different door: The person has 55 choices to enter and 44 choices to leave: 5×4=205 \times 4 = 20 ways.
    • Entering and leaving by any door: The person has 55 choices to enter and 55 choices to leave: 5×5=255 \times 5 = 25 ways.
    • Entering strictly by D1D_1 or D2D_2 and leaving strictly by D3D_3, D4D_4, or D5D_5: The person has 22 entrance options and 33 exit options: 2×3=62 \times 3 = 6 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 55 ways, the tens place in 44 ways, and the units place in 33 ways. Total numbers = 5×4×3=605 \times 4 \times 3 = 60.
    • Swimming competition podium finishes: In a race with 1010 competitors where no dead heat (tie) occurs, the first 33 positions can be occupied in 10×9×8=72010 \times 9 \times 8 = 720 ways.
    • Flag signals: Given 77 flags of different colors, the number of distinct signals that can be transmitted using 22 flags positioned vertically one above the other is 7×6=427 \times 6 = 42.
    • Monkeys and Masters distribution: If there are mm distinct monkeys and nn available masters, and each master can receive any number of monkeys, each monkey independently has nn options of masters. The total number of ways is n×n×⋯×n (m times)=nmn \times n \times \dots \times n\text{ (}m\text{ times)} = n^m.
  • Dictionary Rank of a Word (Rank of 'TOUGH'):

    • Letters arranged in alphabetical order: G,H,O,T,UG, H, O, T, U.
    • Words starting with GG: 4!=244! = 24.
    • Words starting with HH: 4!=244! = 24.
    • Words starting with OO: 4!=244! = 24.
    • Words starting with TGTG: 3!=63! = 6.
    • Words starting with THTH: 3!=63! = 6.
    • Words starting with TOGTOG: 2!=22! = 2.
    • Words starting with TOHTOH: 2!=22! = 2.
    • Next word is TOUGHTOUGH: 1st1^{\text{st}} word in sequence.
    • Total Rank=24+24+24+6+6+2+2+1=89\text{Total Rank} = 24 + 24 + 24 + 6 + 6 + 2 + 2 + 1 = 89.
  • 4-Letter Words from 'DAUGHTER' Containing the Letter 'G':

    • The word 'DAUGHTER' consists of 88 distinct letters.
    • Method 1 (Direct Position Fixing): The letter 'G' can occupy the 1st1^{\text{st}}, 2nd2^{\text{nd}}, 3rd3^{\text{rd}}, or 4th4^{\text{th}} slot. For each fixed position, the remaining 33 slots are chosen and arranged from the other 77 letters in 7×6×5=2107 \times 6 \times 5 = 210 ways. Total words = 4×210=8404 \times 210 = 840.
    • Method 2 (Complementary Counting): Total 4-letter words without restriction minus 4-letter words that do not contain 'G' = (8×7×6×5)−(7×6×5×4)=1680−840=840(8 \times 7 \times 6 \times 5) - (7 \times 6 \times 5 \times 4) = 1680 - 840 = 840.

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 n!n! or ⌊n\lfloor n, defined as the continued product of the first nn natural numbers:         n!=1×2×3×⋯×(n−1)×nn! = 1 \times 2 \times 3 \times \dots \times (n - 1) \times n
    • Recurrence relation: n!=n×(n−1)!n! = n \times (n - 1)!, which implies (n−1)!=n!n(n - 1)! = \frac{n!}{n}.
    • Setting n=1n = 1 yields 0!=1!1=10! = \frac{1!}{1} = 1.
    • Standard factorial values:
      • 0!=10! = 1
      • 1!=11! = 1
      • 2!=22! = 2
      • 3!=63! = 6
      • 4!=244! = 24
      • 5!=1205! = 120
      • 6!=7206! = 720
      • 7!=50407! = 5040
  • Properties of Factorial Sums:

    • The sum of factorials ∑k=1nk!\sum_{k=1}^n k! for n≥4n \ge 4 is never a perfect square.
    • Verification:
      • 1!=1=121! = 1 = 1^2
      • 1!+2!=31! + 2! = 3
      • 1!+2!+3!=9=321! + 2! + 3! = 9 = 3^2
      • 1!+2!+3!+4!=331! + 2! + 3! + 4! = 33
      • 1!+2!+3!+4!+5!=1531! + 2! + 3! + 4! + 5! = 153
    • Since every factorial k!k! for k≥5k \ge 5 has a units digit of 00, any sum for n≥4n \ge 4 will terminate in the digit 33. No integer square terminates in 33.
  • Legendre's Formula (Exponent of a Prime in n!n!):

    • If pp is a prime number, the highest power (exponent) of pp dividing n!n!, denoted Ep(n!)E_p(n!), is given by:         Ep(n!)=⌊np⌋+⌊np2⌋+⌊np3⌋+…E_p(n!) = \left\lfloor \frac{n}{p} \right\rfloor + \left\lfloor \frac{n}{p^2} \right\rfloor + \left\lfloor \frac{n}{p^3} \right\rfloor + \dots         continued until ⌊npk⌋=0\left\lfloor \frac{n}{p^k} \right\rfloor = 0.
  • Applications of Legendre's Formula:

    • Exponent of 2 in 100!100!: If 100!=2m⋅I100! = 2^m \cdot I where II is an odd integer:         m=E2(100!)=⌊1002⌋+⌊1004⌋+⌊1008⌋+⌊10016⌋+⌊10032⌋+⌊10064⌋m = E_2(100!) = \left\lfloor \frac{100}{2} \right\rfloor + \left\lfloor \frac{100}{4} \right\rfloor + \left\lfloor \frac{100}{8} \right\rfloor + \left\lfloor \frac{100}{16} \right\rfloor + \left\lfloor \frac{100}{32} \right\rfloor + \left\lfloor \frac{100}{64} \right\rfloorm=50+25+12+6+3+1=97m = 50 + 25 + 12 + 6 + 3 + 1 = 97
    • Highest power of 7 dividing 101!101!: The largest n∈Nn \in \mathbb{N} such that 7n∣101!7^n \mid 101! is:         E7(101!)=⌊1017⌋+⌊10149⌋=14+2=16E_7(101!) = \left\lfloor \frac{101}{7} \right\rfloor + \left\lfloor \frac{101}{49} \right\rfloor = 14 + 2 = 16
    • Number of cyphers (trailing zeros) at the end of 100!100!: Trailing zeros correspond to the exponent of 10=2×510 = 2 \times 5, given by min⁡(E2(100!),E5(100!))=E5(100!)\min(E_2(100!), E_5(100!)) = E_5(100!).         E5(100!)=⌊1005⌋+⌊10025⌋=20+4=24E_5(100!) = \left\lfloor \frac{100}{5} \right\rfloor + \left\lfloor \frac{100}{25} \right\rfloor = 20 + 4 = 24
    • Largest nn such that 40n40^n divides 60!60!: Prime factorize 40=23×540 = 2^3 \times 5. Exponent analysis:         E5(60!)=⌊605⌋+⌊6025⌋=12+2=14E_5(60!) = \left\lfloor \frac{60}{5} \right\rfloor + \left\lfloor \frac{60}{25} \right\rfloor = 12 + 2 = 14E2(60!)=⌊602⌋+⌊604⌋+⌊608⌋+⌊6016⌋+⌊6032⌋=30+15+7+3+1=56E_2(60!) = \left\lfloor \frac{60}{2} \right\rfloor + \left\lfloor \frac{60}{4} \right\rfloor + \left\lfloor \frac{60}{8} \right\rfloor + \left\lfloor \frac{60}{16} \right\rfloor + \left\lfloor \frac{60}{32} \right\rfloor = 30 + 15 + 7 + 3 + 1 = 56         From 40n=23n⋅5n40^n = 2^{3n} \cdot 5^n, we require 3n≤56  ⟹  n≤183n \le 56 \implies n \le 18, and n≤14n \le 14. Thus, the maximum value is min⁡(18,14)=14\min(18, 14) = 14.

Fundamental Theorems and Algebraic Properties

  • Theorem 1 (Linear Permutation of All Distinct Objects):

    • The number of permutations of nn distinct objects taken all at a time is:         nPn=P(n,n)=Ann=n!^n P_n = P(n, n) = A_n^n = n!
  • Theorem 2 (Linear Permutation of Distinct Objects Taken rr at a Time):

    • The number of permutations of nn distinct objects taken rr at a time (0≤r≤n0 \le r \le n) is:         nPr=P(n,r)=Arn=n!(n−r)!=n(n−1)(n−2)…(n−r+1)^n P_r = P(n, r) = A_r^n = \frac{n!}{(n - r)!} = n(n - 1)(n - 2)\dots(n - r + 1)
  • Theorem 3 (Combination / Selection):

    • The number of ways to select rr objects from nn distinct objects (0≤r≤n0 \le r \le n) is:         nCr=C(n,r)=(nr)=n!r!(n−r)!^n C_r = C(n, r) = \binom{n}{r} = \frac{n!}{r!(n - r)!}
  • Standard Identities and Notes:

    • nP0=1^n P_0 = 1, nPn=n!^n P_n = n!
    • nCr=nCn−r^n C_r = {^n C_{n-r}}, nC0=1^n C_0 = 1, nCn=1^n C_n = 1
    • Relation between permutation and combination: nPr=r!⋅nCr^n P_r = r! \cdot {^n C_r}
    • Equality rule: If nCx=nCy^n C_x = {^n C_y}, then either x=yx = y or x+y=nx + y = n
    • Ratio property: nCrnCr−1=n−r+1r\frac{^n C_r}{^n C_{r-1}} = \frac{n - r + 1}{r}
    • Pascal's Identity:         nCr+nCr−1=n+1Cr^n C_r + {^n C_{r-1}} = {^{n+1} C_r}Combinatorial Interpretation: Choosing rr balls from n+1n + 1 distinct balls (including one pink ball) equals the count when the pink ball is excluded (nCr^n C_r) plus the count when the pink ball is included (nCr−1^n C_{r-1}).

Geometric Combinatorics

  • Lines and Triangles from Coplanar Points:

    • Straight lines from nn points (no 3 collinear): nC2=n(n−1)2^n C_2 = \frac{n(n - 1)}{2}.
    • Triangles from nn points (no 3 collinear): nC3=n(n−1)(n−2)6^n C_3 = \frac{n(n - 1)(n - 2)}{6}.
    • Diagonals of an nn-sided polygon: Joining any two vertices produces a side or a diagonal: nC2−n=n(n−1)2−n=n(n−3)2^n C_2 - n = \frac{n(n - 1)}{2} - n = \frac{n(n - 3)}{2}.
  • Points with Partial Collinearity (10 points in a plane, exactly 4 collinear):

    • Straight lines formed:
      • Method 1: 10C2−4C2+1=45−6+1=40^{10} C_2 - {^4 C_2} + 1 = 45 - 6 + 1 = 40.
      • Method 2: Select 2 from the 6 non-collinear points (6C2^6 C_2), or 1 from non-collinear and 1 from collinear (6C1×4C1^6 C_1 \times {^4 C_1}), plus the 1 single line containing the 4 collinear points: 15+(6×4)+1=15+24+1=4015 + (6 \times 4) + 1 = 15 + 24 + 1 = 40.
    • Triangles formed:
      • Method 1: Total possible triangles minus collinear sets: 10C3−4C3=120−4=116^{10} C_3 - {^4 C_3} = 120 - 4 = 116.
      • Method 2: Partition by choice: 6C3+(6C2×4C1)+(6C1×4C2)=20+(15×4)+(6×6)=20+60+36=116^6 C_3 + ({^6 C_2} \times {^4 C_1}) + ({^6 C_1} \times {^4 C_2}) = 20 + (15 \times 4) + (6 \times 6) = 20 + 60 + 36 = 116.
  • Parallelograms Formed by Intersecting Parallel Lines:

    • A set of 66 parallel lines intersecting another set of 55 parallel lines requires selecting 22 lines from each set to construct a parallelogram: 6C2×5C2=15×10=150^6 C_2 \times {^5 C_2} = 15 \times 10 = 150.
  • Pentagons Formed on Triangle Sides:

    • Given △ABC\triangle ABC: 44 points on side ABAB (P1,P2,P3,P4P_1, P_2, P_3, P_4), 55 points on side BCBC (P5,P6,P7,P8,P9P_5, P_6, P_7, P_8, P_9), and 44 points on side ACAC (P10,P11,P12,P13P_{10}, P_{11}, P_{12}, P_{13}). No point is a vertex of △ABC\triangle ABC.
    • To form a pentagon (55 vertices), no more than 22 points can be selected from any single side (collinear points cannot form polygon edges along the same line).
    • Valid partitions of 55 vertices across the three sides (AB,BC,CA)(AB, BC, CA):
      • Case 1 (2,2,12, 2, 1): 4C2×5C2×4C1=6×10×4=240^4 C_2 \times {^5 C_2} \times {^4 C_1} = 6 \times 10 \times 4 = 240
      • Case 2 (2,1,22, 1, 2): 4C2×5C1×4C2=6×5×6=180^4 C_2 \times {^5 C_1} \times {^4 C_2} = 6 \times 5 \times 6 = 180
      • Case 3 (1,2,21, 2, 2): 4C1×5C2×4C2=4×10×6=240^4 C_1 \times {^5 C_2} \times {^4 C_2} = 4 \times 10 \times 6 = 240
    • Total number of pentagons = 240+180+240=660240 + 180 + 240 = 660.
  • Maximum Intersection Points Between Lines and Circles:

    • Given 88 straight lines and 66 circles in a plane:
      • Straight Line vs. Straight Line: 8C2×1=28×1=28^8 C_2 \times 1 = 28 \times 1 = 28
      • Straight Line vs. Circle: 8C1×6C1×2=8×6×2=96^8 C_1 \times {^6 C_1} \times 2 = 8 \times 6 \times 2 = 96
      • Circle vs. Circle: 6C2×2=15×2=30^6 C_2 \times 2 = 15 \times 2 = 30
    • Total maximum intersection points = 28+96+30=15428 + 96 + 30 = 154.
  • Polygon Triangulation Relation:

    • Let pnp_n denote the total number of triangles formed by joining vertices of an nn-sided regular polygon (pn=nC3p_n = {^n C_3}).
    • If pn+1−pn=66p_{n+1} - p_n = 66:         n+1C3−nC3=nC2=66{^{n+1} C_3} - {^n C_3} = {^n C_2} = 66n(n−1)2=66  ⟹  n(n−1)=132  ⟹  n=12\frac{n(n - 1)}{2} = 66 \implies n(n - 1) = 132 \implies n = 12
    • The prime factorization of n=12n = 12 is 22×32^2 \times 3.
    • The distinct prime divisors of 1212 are 22 and 33, and their sum is 2+3=52 + 3 = 5.

Linear Arrangements with Restrictions

  • Separation and Bundle Methods:

    • Rainbow colors with Blue and Green never together: Arrange the 77 different colors of the rainbow.
      • Method 1 (Complementary): Total permutations minus arrangements where Blue and Green are together (bundled as 1 unit): 7!−(6!×2!)=5040−(720×2)=5040−1440=36007! - (6! \times 2!) = 5040 - (720 \times 2) = 5040 - 1440 = 3600.
      • Method 2 (Gap Method): Arrange the other 55 colors first in 5!=1205! = 120 ways. This produces 66 available gaps. Select 22 gaps for Blue and Green and arrange them: 6C2×2!=15×2=30^6 C_2 \times 2! = 15 \times 2 = 30. Total = 120×30=3600120 \times 30 = 3600.
    • Queue of 4 boys and 3 girls with girls not all together: Total ways to line up 77 persons minus ways where all 33 girls form an unbroken block: 7!−(5!×3!)=5040−(120×6)=5040−720=43207! - (5! \times 3!) = 5040 - (120 \times 6) = 5040 - 720 = 4320.
  • Picnic Selection with Split Groups:

    • Group A: 77 boys, 33 girls. Group B: 66 boys, 55 girls.
    • Requirement: Invite 44 boys and 44 girls total, such that exactly 55 individuals are chosen from Group A and 33 individuals from Group B.
    • Let bA,gAb_A, g_A and bB,gBb_B, g_B denote the selections from Groups A and B respectively:         bA+gA=5,bB+gB=3,bA+bB=4,gA+gB=4b_A + g_A = 5, \quad b_B + g_B = 3, \quad b_A + b_B = 4, \quad g_A + g_B = 4         Since gA≤3g_A \le 3, possible distributions are:
      • Case 1 (gA=3,bA=2  ⟹  gB=1,bB=2g_A = 3, b_A = 2 \implies g_B = 1, b_B = 2):             7C2×3C3×6C2×5C1=21×1×15×5=1575^7 C_2 \times {^3 C_3} \times {^6 C_2} \times {^5 C_1} = 21 \times 1 \times 15 \times 5 = 1575
      • Case 2 (gA=2,bA=3  ⟹  gB=2,bB=1g_A = 2, b_A = 3 \implies g_B = 2, b_B = 1):             7C3×3C2×6C1×5C2=35×3×6×10=6300^7 C_3 \times {^3 C_2} \times {^6 C_1} \times {^5 C_2} = 35 \times 3 \times 6 \times 10 = 6300
      • Case 3 (gA=1,bA=4  ⟹  gB=3,bB=0g_A = 1, b_A = 4 \implies g_B = 3, b_B = 0):             7C4×3C1×6C0×5C3=35×3×1×10=1050^7 C_4 \times {^3 C_1} \times {^6 C_0} \times {^5 C_3} = 35 \times 3 \times 1 \times 10 = 1050
    • Total number of ways = 1575+6300+1050=89251575 + 6300 + 1050 = 8925.
  • Alphabetical Order Selection with Fixed Median:

    • Five letters are chosen from the 2626 English alphabets and arranged strictly in alphabetical order such that the middle (3rd3^{\text{rd}}) letter is 'M'.
    • The letter 'M' is the 13th13^{\text{th}} letter, preceded by 1212 letters (A to L) and followed by 1313 letters (N to Z).
    • Select 22 letters preceding 'M': 12C2=66^{12} C_2 = 66.
    • Select 22 letters succeeding 'M': 13C2=78^{13} C_2 = 78.
    • Since alphabetical arrangement of chosen distinct letters is unique (11 way), total ways = 66×78=514866 \times 78 = 5148.
  • Selecting Three Numbers in Arithmetic Progression (A.P.):

    • Select 33 numbers a<b<ca < b < c from {1,2,3,…,20}\{1, 2, 3, \dots, 20\} such that they form an A.P.
    • The condition is 2b=a+c2b = a + c, requiring a+ca + c to be even. This implies aa and cc must have identical parity (both even or both odd). Once aa and cc are selected, b=a+c2b = \frac{a+c}{2} is uniquely determined.
    • The set contains 1010 even numbers and 1010 odd numbers.
    • Both odd: 10C2=45^{10} C_2 = 45.
    • Both even: 10C2=45^{10} C_2 = 45.
    • Total selections = 45+45=9045 + 45 = 90.
    • Alternative Common Difference (dd) Method: For d=1d = 1, there are 1818 triplets; for d=2d = 2, 1616; for d=3d = 3, 1414; down to d=9d = 9, which gives 22. Total = 2(1+2+⋯+9)=2×45=902(1 + 2 + \dots + 9) = 2 \times 45 = 90.
  • Non-Consecutive Train Stops (Gap Method):

    • A train has 1212 enroute stations and must stop at 44 of them such that no two stopping stations are consecutive.
    • Non-stopping stations = 12−4=812 - 4 = 8.
    • Placing the 88 non-stopping stations creates 8+1=98 + 1 = 9 gaps.
    • Choosing 44 gaps for the stopping stations yields:         9C4=9×8×7×64×3×2×1=126^9 C_4 = \frac{9 \times 8 \times 7 \times 6}{4 \times 3 \times 2 \times 1} = 126

Formation of Groups and Distribution

  • Division of Distinct Objects into Groups:

    • Division of (m+n)(m + n) distinct objects into two groups of sizes mm and nn:
      • If m≠nm \ne n: (m+n)!m!n!\frac{(m + n)!}{m! n!}
      • If m=nm = n: (2n)!n!n!2!=(2n)!(n!)22!\frac{(2n)!}{n! n! 2!} = \frac{(2n)!}{(n!)^2 2!}
    • Division of (m+n+p)(m + n + p) distinct objects into three groups:
      • If m,n,pm, n, p are all distinct: (m+n+p)!m!n!p!\frac{(m + n + p)!}{m! n! p!}
      • If m=n=pm = n = p: (3n)!(n!)33!\frac{(3n)!}{(n!)^3 3!}
      • If two groups are of equal size and one is distinct (e.g., sizes 2,2,12, 2, 1 from 55 objects): 5!(2!)21!2!\frac{5!}{(2!)^2 1! 2!}
    • General Rule for Division: When kk groups have identical sizes, divide by k!k! to eliminate duplicate groupings because the groups themselves are unlabelled.
    • Distribution to Distinct Recipients: If the groups are subsequently assigned to kk distinct entities, multiply the division count by k!k!.
  • Grouping Applications:

    • 30 Jawans Grouping and Deputation:
      • Number of ways to divide 3030 Jawans into 33 equal groups of 1010: 30!(10!)3⋅3!\frac{30!}{(10!)^3 \cdot 3!}.
      • Number of ways to depute 3030 Jawans equally across 33 distinct borders (1010 on each border): 30!(10!)3⋅3!×3!=30!(10!)3\frac{30!}{(10!)^3 \cdot 3!} \times 3! = \frac{30!}{(10!)^3}.
    • Distribution of 6 Different Books to 3 Children (Each Gets At Least 1):
      • Integer partitions of 66 into 33 non-zero parts:
        • Type (4,1,1)(4, 1, 1): 6!4!(1!)22!×3!=15×6=90\frac{6!}{4! (1!)^2 2!} \times 3! = 15 \times 6 = 90
        • Type (3,2,1)(3, 2, 1): 6!3!2!1!×3!=60×6=360\frac{6!}{3! 2! 1!} \times 3! = 60 \times 6 = 360
        • Type (2,2,2)(2, 2, 2): 6!(2!)33!×3!=15×6=90\frac{6!}{(2!)^3 3!} \times 3! = 15 \times 6 = 90
      • Total ways = (15+60+15)×3!=90×6=540(15 + 60 + 15) \times 3! = 90 \times 6 = 540.
    • 4 Different Books into 3 Different Bags (None Empty):
      • Partition of 44 into 33 parts: (2,1,1)(2, 1, 1).
      • Number of ways = 4!2!(1!)22!×3!=6×6=36\frac{4!}{2! (1!)^2 2!} \times 3! = 6 \times 6 = 36.
    • Seating 8 Persons in 3 Distinct Taxis (Each having 3 seats):
      • Partition of 88 people into capacities (3,3,2)(3, 3, 2).
      • Internal arrangement immaterial: Grouping and assigning to taxis = 8!(3!)22!2!×3!=4032072×2×6=1680\frac{8!}{(3!)^2 2! 2!} \times 3! = \frac{40320}{72 \times 2} \times 6 = 1680.
      • Internal arrangement matters (distinct seats inside taxis): Multiply by the seat arrangements within each taxi (3!×3!×3P2=6×6×6=2163! \times 3! \times {^3 P_2} = 6 \times 6 \times 6 = 216):             1680×216=362,8801680 \times 216 = 362,880
    • Assigning 45 Volunteers to 3 Distinct Districts (Requiring 20, 15, and 10):
      • Because group sizes are distinct (20,15,1020, 15, 10) and designated for specific distinct districts, the assignment is:             45!20!⋅15!⋅10!\frac{45!}{20! \cdot 15! \cdot 10!}

Permutations of Alike Objects

  • General Permutation Formula for Alike Objects:

    • The number of permutations of nn objects taken all at a time, where pp are alike of the 1st1^{\text{st}} kind, qq are alike of the 2nd2^{\text{nd}} kind, rr are alike of the 3rd3^{\text{rd}} kind, and the remaining are distinct, is:         n!p!⋅q!⋅r!\frac{n!}{p! \cdot q! \cdot r!}
    • Arrangements of 'DADDY': 55 letters (3 D’s,1 A,1 Y3\text{ D's}, 1\text{ A}, 1\text{ Y})   ⟹  5!3!=20\implies \frac{5!}{3!} = 20.
    • Arrangements of 'MAHABHARAT': 1010 letters (4 A’s,2 H’s,1 M,1 B,1 R,1 T4\text{ A's}, 2\text{ H's}, 1\text{ M}, 1\text{ B}, 1\text{ R}, 1\text{ T})   ⟹  10!4!⋅2!=75,600\implies \frac{10!}{4! \cdot 2!} = 75,600.
  • Constrained Number Formation Problems:

    • JEE Main Problem (n(S)+n(P)n(S) + n(P)):
      • Let SS denote 4-digit numbers abcdabcd such that a>b>c>da > b > c > d. Any choice of 44 distinct digits from {0,1,2,…,9}\{0, 1, 2, \dots, 9\} has exactly 11 strictly decreasing arrangement. Since a>b>c>da > b > c > d, the leading digit aa can never be 00. Thus:             n(S)=10C4=10×9×8×724=210n(S) = {^{10} C_4} = \frac{10 \times 9 \times 8 \times 7}{24} = 210
      • Let PP denote 5-digit numbers whose product of digits is 20=22×520 = 2^2 \times 5. The multiset of 55 non-zero digits can be:
        • {5,4,1,1,1}  ⟹  5!3!=20\{5, 4, 1, 1, 1\} \implies \frac{5!}{3!} = 20
        • {5,2,2,1,1}  ⟹  5!2!2!=30\{5, 2, 2, 1, 1\} \implies \frac{5!}{2! 2!} = 30n(P)=20+30=50n(P) = 20 + 30 = 50
      • n(S)+n(P)=210+50=260n(S) + n(P) = 210 + 50 = 260.
    • 7-digit numbers using 1, 2, 3, 5, 7 with each digit used at least once:
      • The 77 slots must be partitioned across the 55 digits:
        • Case 1 (3,1,1,1,13, 1, 1, 1, 1): Choose 11 digit to repeat thrice (5C1=5^5 C_1 = 5): 5×7!3!=5×840=42005 \times \frac{7!}{3!} = 5 \times 840 = 4200.
        • Case 2 (2,2,1,1,12, 2, 1, 1, 1): Choose 22 digits to repeat twice (5C2=10^5 C_2 = 10): 10×7!2!2!=10×1260=1260010 \times \frac{7!}{2! 2!} = 10 \times 1260 = 12600.
      • Total numbers = 4200+12600=168004200 + 12600 = 16800.
    • Badminton Series Problem: Players A and B play until one wins 55 games. Number of ways A wins the series:
      • If A wins in kk games (k∈{5,6,7,8,9}k \in \{5, 6, 7, 8, 9\}), A must win the final kthk^{\text{th}} game, and exactly 44 of the preceding k−1k - 1 games:             ∑k=59k−1C4=4C4+5C4+6C4+7C4+8C4=1+5+15+35+70=126\sum_{k=5}^9 {^{k-1} C_4} = {^4 C_4} + {^5 C_4} + {^6 C_4} + {^7 C_4} + {^8 C_4} = 1 + 5 + 15 + 35 + 70 = 126
    • 7-digit numbers using only 1, 2, 3 with digit sum equal to 11:
      • Let x,y,zx, y, z denote the frequency of digits 1,2,31, 2, 3 respectively: x+y+z=7x + y + z = 7 and x+2y+3z=11x + 2y + 3z = 11. Subtracting gives y+2z=4y + 2z = 4.
      • If z=2  ⟹  y=0,x=5z = 2 \implies y = 0, x = 5 (digits: 3,3,1,1,1,1,13, 3, 1, 1, 1, 1, 1): 7!2!5!=21\frac{7!}{2! 5!} = 21.
      • If z=1  ⟹  y=2,x=4z = 1 \implies y = 2, x = 4 (digits: 3,2,2,1,1,1,13, 2, 2, 1, 1, 1, 1): 7!1!2!4!=105\frac{7!}{1! 2! 4!} = 105.
      • If z=0  ⟹  y=4,x=3z = 0 \implies y = 4, x = 3 (digits: 2,2,2,2,1,1,12, 2, 2, 2, 1, 1, 1): 7!4!3!=35\frac{7!}{4! 3!} = 35.
      • Total numbers = 21+105+35=16121 + 105 + 35 = 161.
  • Permutations of Alike Objects Taken Some at a Time:

    • Selection of 5 letters from 'MISSISSIPPI' (1 M,4 I,4 S,2 P1\text{ M}, 4\text{ I}, 4\text{ S}, 2\text{ P}):
      • 4 alike + 1 different: Choose 4 alike from {I,S}\{I, S\} (2C1^2 C_1), and 1 different from remaining 33 types (3C1^3 C_1): 2×3=62 \times 3 = 6.
      • 3 alike + 2 alike: Choose 3 alike from {I,S}\{I, S\} (2C1^2 C_1), and 2 alike from remaining 22 types (2C1^2 C_1): 2×2=42 \times 2 = 4.
      • 3 alike + 2 different: Choose 3 alike from {I,S}\{I, S\} (2C1^2 C_1), and 2 different from remaining 33 types (3C2^3 C_2): 2×3=62 \times 3 = 6.
      • 2 alike + 2 alike + 1 different: Choose two pairs from {I,S,P}\{I, S, P\} (3C2^3 C_2), and 1 different from remaining 22 types (2C1^2 C_1): 3×2=63 \times 2 = 6.
      • 2 alike + 3 different: Choose 1 pair from {I,S,P}\{I, S, P\} (3C1^3 C_1), and 3 different from remaining 33 types (3C3^3 C_3): 3×1=33 \times 1 = 3.
      • Total selections = 6+4+6+6+3=256 + 4 + 6 + 6 + 3 = 25.
    • 4-letter words from letters of 'PQRPQRSTUVP':
      • Counts: 3 P’s,2 Q’s,2 R’s,1 S,1 T,1 U,1 V3\text{ P's}, 2\text{ Q's}, 2\text{ R's}, 1\text{ S}, 1\text{ T}, 1\text{ U}, 1\text{ V}. Total = 1111 letters across 77 distinct types.
      • 3 alike + 1 different: Selection = 1C1×6C1=6^1 C_1 \times {^6 C_1} = 6. Arrangements = 6×4!3!=6×4=246 \times \frac{4!}{3!} = 6 \times 4 = 24.
      • 2 alike + 2 other alike: Selection from {P,Q,R}=3C2=3\{P, Q, R\} = {^3 C_2} = 3. Arrangements = 3×4!2!2!=3×6=183 \times \frac{4!}{2! 2!} = 3 \times 6 = 18.
      • 2 alike + 2 different: Selection = 3C1×6C2=3×15=45^3 C_1 \times {^6 C_2} = 3 \times 15 = 45. Arrangements = 45×4!2!=45×12=54045 \times \frac{4!}{2!} = 45 \times 12 = 540.
      • All 4 different: Selection = 7C4=35^7 C_4 = 35. Arrangements = 35×4!=35×24=84035 \times 4! = 35 \times 24 = 840.
      • Total words = 24+18+540+840=142224 + 18 + 540 + 840 = 1422.

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 nn elements, each circular arrangement corresponds to nn distinct linear arrangements.
    • Number of circular permutations of nn distinct objects taken all at a time: (n−1)!(n - 1)!
    • Taken rr at a time: nPrr=nCr(r−1)!\frac{^n P_r}{r} = {^n C_r} (r - 1)!
    • Indistinguishable Clockwise and Anticlockwise Arrangements (e.g., Necklaces, Garlands):
      • When flipping the arrangement over renders clockwise and anticlockwise identical, the total is halved:             (n−1)!2andnCr(r−1)!2\frac{(n - 1)!}{2} \quad \text{and} \quad \frac{^n C_r (r - 1)!}{2}
  • Circular Problems:

    • 7 Americans and 7 British seated alternately at a round table: Arrange the 7 British persons in a circle in (7−1)!=6!(7 - 1)! = 6! ways. This produces 7 alternating gaps. The 7 Americans can be seated in these gaps in 7!7! ways. Total = 6!×7!6! \times 7!.
    • 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−1)!2=7!2=50402=2520\frac{(8 - 1)!}{2} = \frac{7!}{2} = \frac{5040}{2} = 2520.
    • 8 persons seated with two particular individuals never together:
      • Method 1: Total circular arrangements minus together: (8−1)!−((7−1)!×2!)=7!−(6!×2)=5040−1440=3600=5×6!(8 - 1)! - ((7 - 1)! \times 2!) = 7! - (6! \times 2) = 5040 - 1440 = 3600 = 5 \times 6!.
      • Method 2: Seat remaining 6 people in (6−1)!=5!(6 - 1)! = 5! ways, leaving 6 gaps. Seat the two specific individuals into 2 of the 6 gaps in 6P2=30^6 P_2 = 30 ways: 5!×30=120×30=3600=5×6!5! \times 30 = 120 \times 30 = 3600 = 5 \times 6!.
    • Garlands of 6 flowers chosen from 10 distinct flowers: Choose 66 flowers in 10C6=210^{10} C_6 = 210 ways. Form circular garlands: (6−1)!2=1202=60\frac{(6 - 1)!}{2} = \frac{120}{2} = 60. Total = 210×60=12600210 \times 60 = 12600.
  • Hexagons from a 15-gon with No Shared Sides (Circular Gap Selection):

    • Number of ways to choose kk non-consecutive vertices from an nn-sided regular polygon in a circle is given by nn−kn−kCk\frac{n}{n - k} {^{n-k} C_k}.
    • For n=15n = 15 and k=6k = 6:         1515−615−6C6=1599C6=53×84=140\frac{15}{15 - 6} {^{15-6} C_6} = \frac{15}{9} {^9 C_6} = \frac{5}{3} \times 84 = 140
    • Alternative Fixed-Point Analysis: If vertex A1A_1 is chosen, the remaining 55 vertices are selected from 1212 non-consecutive linear positions (12−5+1C5=8C5=56^{12-5+1} C_5 = {^8 C_5} = 56). If A1A_1 is excluded, 66 vertices are selected from 1414 non-consecutive linear positions (14−6+1C6=9C6=84^{14-6+1} C_6 = {^9 C_6} = 84). Total = 56+84=14056 + 84 = 140.

Total Number of Selections and Divisors of Numbers

  • Total Number of Combinations:

    • From nn distinct objects: The number of ways to select at least one object is:         nC1+nC2+nC3+⋯+nCn=2n−1^n C_1 + {^n C_2} + {^n C_3} + \dots + {^n C_n} = 2^n - 1
    • From alike and distinct objects: Given pp alike of one kind, qq alike of another, rr alike of a third, and nn distinct objects, the number of ways to select at least one object is:         (p+1)(q+1)(r+1)2n−1(p + 1)(q + 1)(r + 1)2^n - 1
  • Applications to Selection Problems:

    • Books on Subjects (3 Maths, 4 Physics, 5 Chemistry, all distinct):
      • Exactly one book of each subject: 3C1×4C1×5C1=3×4×5=60^3 C_1 \times {^4 C_1} \times {^5 C_1} = 3 \times 4 \times 5 = 60.
      • At least one book of each subject: (23−1)(24−1)(25−1)=7×15×31=3255(2^3 - 1)(2^4 - 1)(2^5 - 1) = 7 \times 15 \times 31 = 3255.
      • At least one book overall: 23+4+5−1=212−1=4096−1=40952^{3+4+5} - 1 = 2^{12} - 1 = 4096 - 1 = 4095.
    • Fruit Selection (2 Bananas, 3 Mangoes, 4 Apples, identical within species):
      • At least one fruit: (2+1)(3+1)(4+1)−1=3×4×5−1=59(2 + 1)(3 + 1)(4 + 1) - 1 = 3 \times 4 \times 5 - 1 = 59.
      • At least one fruit of each species: 2×3×4=242 \times 3 \times 4 = 24.
    • Selecting from nn different books with pp identical copies each: Each book provides p+1p + 1 options (0,1,…,p0, 1, \dots, p copies). Selecting at least one book = (p+1)n−1(p + 1)^n - 1.
  • Properties and Divisors of N=75600N = 75600:

    • Prime factorization: N=75600=24×33×52×71N = 75600 = 2^4 \times 3^3 \times 5^2 \times 7^1.
    • General form of any divisor: d=2a⋅3b⋅5c⋅7ed = 2^a \cdot 3^b \cdot 5^c \cdot 7^e where a∈{0,1,2,3,4}a \in \{0, 1, 2, 3, 4\}, b∈{0,1,2,3}b \in \{0, 1, 2, 3\}, c∈{0,1,2}c \in \{0, 1, 2\}, e∈{0,1}e \in \{0, 1\}.
    • Counts of Divisors:
      • Total divisors: 5×4×3×2=1205 \times 4 \times 3 \times 2 = 120.
      • Odd divisors (a=0a = 0): 1×4×3×2=241 \times 4 \times 3 \times 2 = 24.
      • Even divisors (a∈{1,2,3,4}a \in \{1, 2, 3, 4\}): 4×4×3×2=964 \times 4 \times 3 \times 2 = 96.
      • Divisors divisible by 5 (c∈{1,2}c \in \{1, 2\}): 5×4×2×2=805 \times 4 \times 2 \times 2 = 80.
      • Divisors divisible by 10 (a≥1,c≥1a \ge 1, c \ge 1): 4×4×2×2=644 \times 4 \times 2 \times 2 = 64.
      • Divisors of form 4n+2=2(2n+1)4n + 2 = 2(2n + 1) (a=1a = 1): 1×4×3×2=241 \times 4 \times 3 \times 2 = 24.
    • Sums of Divisors:
      • Sum of all divisors: (20+21+22+23+24)(30+31+32+33)(50+51+52)(70+71)=31×40×31×8(2^0 + 2^1 + 2^2 + 2^3 + 2^4)(3^0 + 3^1 + 3^2 + 3^3)(5^0 + 5^1 + 5^2)(7^0 + 7^1) = 31 \times 40 \times 31 \times 8.
      • Sum of odd divisors: (20)(30+31+32+33)(50+51+52)(70+71)=1×40×31×8(2^0)(3^0 + 3^1 + 3^2 + 3^3)(5^0 + 5^1 + 5^2)(7^0 + 7^1) = 1 \times 40 \times 31 \times 8.
      • Sum of even divisors: (21+22+23+24)(30+31+32+33)(50+51+52)(70+71)=30×40×31×8(2^1 + 2^2 + 2^3 + 2^4)(3^0 + 3^1 + 3^2 + 3^3)(5^0 + 5^1 + 5^2)(7^0 + 7^1) = 30 \times 40 \times 31 \times 8.
      • Sum of divisors divisible by 5: (20+⋯+24)(30+⋯+33)(51+52)(70+71)(2^0 + \dots + 2^4)(3^0 + \dots + 3^3)(5^1 + 5^2)(7^0 + 7^1).
      • Sum of divisors divisible by 10: (21+⋯+24)(30+⋯+33)(51+52)(70+71)(2^1 + \dots + 2^4)(3^0 + \dots + 3^3)(5^1 + 5^2)(7^0 + 7^1).
      • Sum of divisors of form 4n+24n + 2: (21)(30+⋯+33)(50+51+52)(70+71)(2^1)(3^0 + \dots + 3^3)(5^0 + 5^1 + 5^2)(7^0 + 7^1).
  • Resolution of a Number into Factors:

    • Number of ways to resolve NN as a product of two divisors:
      • n2\frac{n}{2} if nn (total number of divisors) is even (when NN is not a perfect square).
      • n+12\frac{n + 1}{2} if nn is odd (when NN is a perfect square, allowing two equal factors).
    • Resolution into Relatively Prime Factors: The number of ways to resolve NN into a product of two co-prime factors is 2p−12^{p - 1}, where pp is the number of distinct prime factors in the prime factorization of NN.
    • Application: For N=24⋅32⋅53⋅72⋅114⋅132N = 2^4 \cdot 3^2 \cdot 5^3 \cdot 7^2 \cdot 11^4 \cdot 13^2, there are p=6p = 6 distinct primes (2,3,5,7,11,132, 3, 5, 7, 11, 13). The number of ways to resolve NN into two co-prime divisors is 26−1=25=322^{6 - 1} = 2^5 = 32.

Summation of Numbers

  • Sum of Numbers Formed with Distinct Digits:

    • Problem: Find the sum of all numbers greater than 1000010000 formed using digits 1,3,5,7,91, 3, 5, 7, 9 without repetition.
    • Total 5-digit numbers = 5!=1205! = 120.
    • Each digit occupies each place value (units, tens, hundreds, thousands, ten-thousands) exactly 1205=24\frac{120}{5} = 24 times.
    • Sum of digits in any place value: (1+3+5+7+9)×24=25×24=600(1 + 3 + 5 + 7 + 9) \times 24 = 25 \times 24 = 600.
    • Total sum = 600×(1+10+100+1000+10000)=600×11111=6,666,600600 \times (1 + 10 + 100 + 1000 + 10000) = 600 \times 11111 = 6,666,600.
  • Sum of Numbers Formed with Repeated Digits:

    • Problem: Sum of all numbers formed using all digits 2,3,3,4,4,42, 3, 3, 4, 4, 4.
    • Total 6-digit numbers = 6!1!2!3!=72012=60\frac{6!}{1! 2! 3!} = \frac{720}{12} = 60.
    • Position frequencies for each digit:
      • Digit 2: Remaining digits are 3,3,4,4,4  ⟹  5!2!3!=103, 3, 4, 4, 4 \implies \frac{5!}{2! 3!} = 10 times.
      • Digit 3: Remaining digits are 2,3,4,4,4  ⟹  5!1!3!=202, 3, 4, 4, 4 \implies \frac{5!}{1! 3!} = 20 times.
      • Digit 4: Remaining digits are 2,3,3,4,4  ⟹  5!2!2!=302, 3, 3, 4, 4 \implies \frac{5!}{2! 2!} = 30 times.
    • Sum of digits at any positional column = (2×10)+(3×20)+(4×30)=20+60+120=200(2 \times 10) + (3 \times 20) + (4 \times 30) = 20 + 60 + 120 = 200.
    • Total sum = 200×111111=22,222,200200 \times 111111 = 22,222,200.

Distribution of Alike Objects and Integral Solutions

  • Beggar's Method (Stars and Bars):

    • Non-negative integral solutions: The number of ways to distribute nn identical objects among pp persons (where each person receives zero, one, or more) equals the number of non-negative integer solutions to x1+x2+⋯+xp=nx_1 + x_2 + \dots + x_p = n:         n+p−1Cp−1orn+p−1Cn^{n+p-1} C_{p-1} \quad \text{or} \quad {^{n+p-1} C_n}
    • Positive integral solutions: The number of ways to distribute nn identical objects among pp persons such that each receives at least 11 object (natural number solutions to x1+x2+⋯+xp=nx_1 + x_2 + \dots + x_p = n with xi≥1x_i \ge 1) is:         n−1Cp−1^{n-1} C_{p-1}
  • Applications to Distribution and Inequalities:

    • 12 identical marbles into 6 separate non-empty compartments: Natural number distribution: 12−1C6−1=11C5^{12-1} C_{6-1} = {^{11} C_5}.
    • Natural number solutions to x+y+z=102x + y + z = 102 (x,y,z≥1x, y, z \ge 1): 102−1C3−1=101C2=101×1002=5050^{102-1} C_{3-1} = {^{101} C_2} = \frac{101 \times 100}{2} = 5050.
    • Non-negative integral solutions to x+y+z+t≤30x + y + z + t \le 30: Introduce dummy slack variable w≥0w \ge 0 such that x+y+z+t+w=30x + y + z + t + w = 30. Total solutions = 30+5−1C5−1=34C4^{30+5-1} C_{5-1} = {^{34} C_4}.
    • Integer points strictly inside the triangle bounded by (0,0)(0,0), (0,102)(0, 102), (102,0)(102, 0): Requires x>0,y>0x > 0, y > 0 and x+y<102x + y < 102. Setting z=102−(x+y)>0z = 102 - (x + y) > 0 transforms this to x+y+z=102x + y + z = 102 in positive integers. Total points = 101C2=5050^{101} C_2 = 5050.
    • 16 identical oranges to 4 children (each gets at least 1): 16−1C4−1=15C3=15×14×136=455^{16-1} C_{4-1} = {^{15} C_3} = \frac{15 \times 14 \times 13}{6} = 455.
    • Selecting 10 balls from unlimited Red, White, Black, Green balls: Non-negative solutions to xR+xW+xB+xG=10x_R + x_W + x_B + x_G = 10 gives 10+4−1C4−1=13C3^{10+4-1} C_{4-1} = {^{13} C_3}.
    • Selecting 10 balls containing all 4 colors: Positive solutions to xR+xW+xB+xG=10x_R + x_W + x_B + x_G = 10 gives 10−1C4−1=9C3^{10-1} C_{4-1} = {^9 C_3}.
    • Selecting 4 ice creams from 10 varieties (unlimited stock): Non-negative solutions to x1+x2+⋯+x10=4x_1 + x_2 + \dots + x_{10} = 4 gives 4+10−1C10−1=13C9=13C4^{4+10-1} C_{10-1} = {^{13} C_9} = {^{13} C_4}.
    • Distributing 10 identical red pens and 14 identical blue pens among 4 persons (each receives exactly 6 pens):
      • Let person ii receive rir_i red pens. Then they receive 6−ri6 - r_i blue pens.
      • ∑i=14ri=10\sum_{i=1}^4 r_i = 10 subject to 0≤ri≤60 \le r_i \le 6.
      • Total non-negative solutions without upper bound: 10+4−1C4−1=13C3=286^{10+4-1} C_{4-1} = {^{13} C_3} = 286.
      • Subtract cases where some ri≥7r_i \ge 7. Since ∑ri=10\sum r_i = 10, at most one person can violate this. Choose the person (4C1=4^4 C_1 = 4) and assign 77 red pens to them (ri′=ri−7≥0r_i' = r_i - 7 \ge 0). Remaining equation: r1′+r2+r3+r4=3r_1' + r_2 + r_3 + r_4 = 3, which has 3+4−1C4−1=6C3=20^{3+4-1} C_{4-1} = {^6 C_3} = 20 solutions.
      • Invalid solutions = 4×20=804 \times 20 = 80.
      • Valid ways = 286−80=206286 - 80 = 206.

Maximization of Binomial Coefficients

  • Maximizing nCr^n C_r with Fixed nn:

    • If nn is even, nCr^n C_r achieves its unique maximum at r=n2r = \frac{n}{2}.
    • If nn is odd, nCr^n C_r achieves its maximum at two values: r=n−12r = \frac{n - 1}{2} and r=n+12r = \frac{n + 1}{2}.
  • Maximization Applications:

    • *Difference between maximum of 15Cr^{15} C_r and maximum of ^{12} C_r$:* For n = 15,maximumisat, maximum is atr = 7oror8((^{15} C_7oror^{15} C_8).For). Forn = 12,maximumisat, maximum is atr = 6((^{12} C_6).Difference=). Difference =^{15} C_7 - {^{12} C_6}.\n * *Arranging 2nlettersconsistingofletters consisting ofa′sand's andb′s:∗Ifthereare's:* If there arerofofaandand2n - rofofb,totalarrangementsare, total arrangements are\frac{(2n)!}{r!(2n - r)!} = {^{2n} C_r}.Since. Since2niseven,thisismaximizedwhenis even, this is maximized whenr = n,giving, giving^{2n} C_n.\n * *Party Invitations from 20 Friends:* To host the maximum number of distinct parties by calling the same number rofguestseachtime,maximizeof guests each time, maximize^{20} C_r.Since. Since20iseven,is even,r = \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)toto(9,7)viatheshortestpath,everyvalidpathconsistsofexactlyvia the shortest path, every valid path consists of exactly9horizontalsteps(horizontal steps (H)and) and7verticalsteps(vertical steps (V).\n * Total steps = 9 + 7 = 16.\n * The total number of shortest paths is given by the permutations of 9alikealikeH′sand's and7alikealikeV'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),thenumberofderangementsof, the number of derangements ofn 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 6questions,eachwithasingleuniqueanswer.Foreachcorrectmatch,astudentearnsquestions, each with a single unique answer. For each correct match, a student earns+2marks;foreachwrongmatch,marks; for each wrong match,-1 mark is deducted.\n * Let RandandWdenotethenumberofrightandwrongentriesrespectively(denote the number of right and wrong entries respectively (R + W = 6).Score=). Score =2R - 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(Score=(Score =+12):Allcorrect): All correct\implies 1 way.\n * R = 5, W = 1:Impossible,becauseif5areplacedcorrectly,the6thisforcedtobecorrect: Impossible, because if 5 are placed correctly, the 6th is forced to be correct\implies 0 ways.\n * R = 4, W = 2(Score=(Score =+6):Choose4correct(): Choose 4 correct (^6 C_4 = 15)andderangetheother2() and derange the other 2 (D(2) = 1))\implies 15 \times 1 = 15 ways.\n * R = 3, W = 3(Score=(Score =+3):Choose3correct(): Choose 3 correct (^6 C_3 = 20)andderangetheother3() and derange the other 3 (D(3) = 2))\implies 20 \times 2 = 40 ways.\n * R = 2, W = 4(Score=(Score =0):Choose2correct(): Choose 2 correct (^6 C_2 = 15)andderangetheother4() and derange the other 4 (D(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},and, andz = 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$$.