Fundamental Counting Principles and Permutations Study Guide

Basics of Factorials

  • Definition: The factorial of a non-negative integer nn, denoted by n!n!, is the product of all positive integers less than or equal to nn.
  • Specific Values to Memorize (Yad karna hai):
    • 8!=8×7×6×5×4×3×2×1=403208! = 8 \times 7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1 = 40320
    • 7!=7×6×5×4×3×2×1=50407! = 7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1 = 5040
    • 6!=6×5×4×3×2×1=7206! = 6 \times 5 \times 4 \times 3 \times 2 \times 1 = 720
    • 5!=5×4×3×2×1=1205! = 5 \times 4 \times 3 \times 2 \times 1 = 120
    • 4!=4×3×2×1=244! = 4 \times 3 \times 2 \times 1 = 24
    • 3!=3×2×1=63! = 3 \times 2 \times 1 = 6
    • 2!=2×1=22! = 2 \times 1 = 2
    • 1!=11! = 1
    • 0!=10! = 1
  • Important Notes and Constraints:
    • Negative numbers and fractions do not have standard factorials ((−ve)!(-ve)! and (Fraction)!(Fraction)! are marked as invalid or special cases).

Factorial Properties and Expansion Rules

  • Fundamental Recursive Property: n!=n(n−1)!n! = n(n-1)!
  • Higher Order Expansions:
    • n!=n(n−1)(n−2)!n! = n(n-1)(n-2)!
    • n!=n(n−1)(n−2)(n−3)!n! = n(n-1)(n-2)(n-3)!
  • Example for 5!5!:
    • 5!=5×4.3!5! = 5 \times 4.3!
    • 5!=5×4!5! = 5 \times 4!
    • 5!=5×4×3×2!5! = 5 \times 4 \times 3 \times 2!
  • Example for (n+1)!(n+1)!:
    • (n+1)!=(n+1)(n+1−1)!=(n+1)n!(n+1)! = (n+1)(n+1-1)! = (n+1)n!
    • (n+1)!=(n+1)(n)(n−1)!(n+1)! = (n+1)(n)(n-1)!
  • Logic for 0!=10! = 1:
    • Using the formula n!=n(n−1)!n! = n(n-1)!, if we set n=1n=1, then 1!=1(1−1)!→1=1(0!)1! = 1(1-1)! \rightarrow 1 = 1(0!), therefore 0!=10! = 1.

Simplification Techniques for Factorial Expressions

  • Core Rule: When dealing with fractions involving factorials, always expand the Greatest factorial until it reaches the Smallest factorial to allow for cancellation.
  • Example 1 (University Tag: NED):
    • 39!38!=39×38!38!=39\frac{39!}{38!} = \frac{39 \times 38!}{38!} = 39
  • Example 2 (University Tag: MUST):
    • 6!−6=720−366! - 6 = 720 - 36 (Note: Transcript calculation shows 720−36=684720 - 36 = 684).
  • Example 3 (University Tag: NUST):
    • 11!−10!9!=11×10×9!−10×9!9!\frac{11! - 10!}{9!} = \frac{11 \times 10 \times 9! - 10 \times 9!}{9!}
    • 10!(11−1)9!=10!×109!=10×9!×109!=100\frac{10!(11-1)}{9!} = \frac{10! \times 10}{9!} = \frac{10 \times 9! \times 10}{9!} = 100
  • Example 4 (University Tags: FAST, NUST, NED, GIKI):
    • (n+1)!(n−1)!=(n+1)(n)(n−1)!(n−1)!=(n+1)n=n2+n\frac{(n+1)!}{(n-1)!} = \frac{(n+1)(n)(n-1)!}{(n-1)!} = (n+1)n = n^2 + n
  • Example 5:
    • n!(n−1)!=n(n−1)!(n−1)!=n\frac{n!}{(n-1)!} = \frac{n(n-1)!}{(n-1)!} = n
  • Example 6 (Which one is Unity?):
    • n!(n+1)!×(n+1)=n!(n+1)n!×(n+1)=1\frac{n!}{(n+1)!} \times (n+1) = \frac{n!}{(n+1)n!} \times (n+1) = 1

Fundamental Principle of Counting

  • Multiplication Rule (AND):
    • Definition: Used when a task has multiple stages. The work is incomplete until all stages are finished.
    • Total ways = m1×m2×m3×...m_1 \times m_2 \times m_3 \times ...
    • Example: Traveling from City A to City C through City B.
      • Stage I (A to B): 2 ways (m1=2m_1 = 2).
      • Stage II (B to C): 3 ways (m2=3m_2 = 3).
      • Total ways from A to C = 2×3=62 \times 3 = 6.
  • Addition Law (OR):
    • Definition: Used when a task has multiple independent options/mutually exclusive paths. The work is completed by choosing any one option.
    • Total ways = m1+m2m_1 + m_2
    • Example: Traveling from City A to City B.
      • Option I: 3 Trains.
      • Option II: 5 Buses.
      • Total ways = 3+5=83 + 5 = 8.

Permutations

  • Definition: A selection and arrangement where order matters.
  • Case 1: Repetition is NOT allowed:
    • Formula: nPr=n!(n−r)!{}^nP_r = \frac{n!}{(n-r)!}
    • This represents the selection of rr objects from nn distinct objects at a particular time.
  • Case 2: Repetition IS allowed:
    • Formula: nrn^r
  • Case 3: Some objects are the same (Identical items):
    • Formula: n!p!q!r!\frac{n!}{p!q!r!}
  • Word Formation Example (CAT):
    • Total letters (nn) = 3 (C, A, T).
    • If using 2 letters at a time: 3P2=3!(3−2)!=61=6{}^3P_2 = \frac{3!}{(3-2)!} = \frac{6}{1} = 6 words (CA, AC, AT, TA, CT, TC).
    • If using 3 letters at a time: 3P3=3!=6{}^3P_3 = 3! = 6 words (CAT, CTA, ATC, ACT, TAC, TCA).

Word Formation with Specific Constraints

  • Example: "COURAGE" (7 distinct letters):
    • 3 letters at a time: 7P3=7×6×5=210{}^7P_3 = 7 \times 6 \times 5 = 210.
    • 4 letters at a time: 7P4=7×6×5×4=840{}^7P_4 = 7 \times 6 \times 5 \times 4 = 840.
    • All letters at a time: 7!=50407! = 5040.
  • Example: "LETTER" (6 letters, E repeated twice, T repeated twice):
    • Arrangement: 6!2!2!=7204=180\frac{6!}{2!2!} = \frac{720}{4} = 180.
  • Example: Repetition Allowed cases:
    • "COURAGE": 777^7 (if all 7 spots).
    • "COVID": 555^5.
    • "BOOK": 444^4.
    • Example with 3 spots from "LETTER": 63=2166^3 = 216.

Advanced Word Problems (Repetitive vs Non-Repetitive)

  • Non-Repeated Letters (Tricks):
    • "MACHINE": n=7n=7. Total words (RNA - Repetition not allowed) = 7!7!. Total words (RA - Repetition allowed) = 777^7.
    • "EDUCATION": n=9n=9. RNA = 9!9!. RA = 999^9.
    • "SMART": n=5n=5. RNA = 5!5!. RA = 555^5.
  • Repeated Letters (Tricks):
    • "SISTER": 6 letters (S:2, I:1, T:1, E:1, R:1). Total = 6!2!\frac{6!}{2!}.
    • "LETTER": 6 letters (L:1, E:2, T:2, R:1). Total = 6!2!2!\frac{6!}{2!2!}.
    • "MISSISSIPPI": 11 letters (M:1, I:4, S:4, P:2). Total = 11!4!4!2!\frac{11!}{4!4!2!}.

Vowels and Consonants Constraints

  • Vowels Together Rule: Treat the group of vowels as a single entity.
    • Formula: (m−n+1)!×n!(m - n + 1)! \times n!, where mm is total letters and nn is the number of vowels.
    • Example "MACHINE": Total letters=7, Vowels (A,I,E)=3. Remaining Consonants=4. Step: (4+1)!×3!=5!×3!(4+1)! \times 3! = 5! \times 3!.
    • Example "LEARN": Total=5, Vowels (E,A)=2. Step: (3+1)!×2!=4!×2!(3+1)! \times 2! = 4! \times 2!.
    • Example "OPTICAL": Total=7, Vowels (O,I,A)=3. Step: (4+1)!×3!=5!×3!(4+1)! \times 3! = 5! \times 3!.
  • Vowels Together with Repetition:
    • Example "SISTER": Vowels (I,E)=2. Consonants (S,S,T,R)=4. Total groups = 4+1=54+1=5. Calculation: 5!×2!2!\frac{5! \times 2!}{2!} (dividing by 2!2! due to repeated 'S').
    • Example "PREPARATION": Total letters=11. Vowels (E,A,A,I,O)=5. Consonants (P,R,P,R,T,N)=6. Calculation: (6+1)!×5!2!×2!×2!\frac{(6+1)! \times 5!}{2! \times 2! \times 2!} (considering repeats of P, R, and A).
  • Vowels NOT Together:
    • Strategy: Total Permutations - (Vowels Together).
    • Example "COVID": Total=5!5!. Together=4!×2!4! \times 2!. Not together = 5!−(4!×2!)5! - (4! \times 2!).
  • Consonants Together:
    • Example "JUDGE": Total=5. Consonants (J,D,G)=3. Vowels (U,E)=2. Calculation: (2+1)!×3!=3!×3!=36(2+1)! \times 3! = 3! \times 3! = 36.
  • Positional Constraints:
    • "MATRIX" starts with M: 1×5!=1201 \times 5! = 120.
    • "MATRIX" starts with M and ends with X: 1×4!×1=241 \times 4! \times 1 = 24.

Formation of Numbers

  • Using digits 1, 2, 3, 4, 5:
    • Repetition Not Allowed (RNA):
      • 3-digit numbers: 5×4×3=605 \times 4 \times 3 = 60.
      • 4-digit numbers: 5×4×3×2=1205 \times 4 \times 3 \times 2 = 120.
    • Repetition Allowed (RA):
      • 3-digit numbers: 5×5×5=1255 \times 5 \times 5 = 125.
  • Using digits 0, 1, 2, 3, 4, 6 (Zero restriction: 0 cannot be in the first place):
    • Repetition Not Allowed:
      • 3-digit numbers: 5 (choices for 1st)×5 (choices for 2nd)×4=1005 \text{ (choices for 1st)} \times 5 \text{ (choices for 2nd)} \times 4 = 100.
      • 4-digit numbers: 5×5×4×3=3005 \times 5 \times 4 \times 3 = 300.
  • Even and Odd Numbers (RNA) from 0, 3, 4, 5, 6:
    • Total Numbers: 4×4×3×2=964 \times 4 \times 3 \times 2 = 96.
    • Even Numbers with RNA: Must handle the '0' at the end separately from other even digits (4, 6) or calculate systematically as shown (2×4×3×2=482 \times 4 \times 3 \times 2 = 48 for non-zero endings).
  • PIN Codes and ATM Cards:
    • 4-digit PIN (digits 0-9): Repetition allowed, 0 is allowed at the start. Total = 10×10×10×10=10,00010 \times 10 \times 10 \times 10 = 10,000.

Practical Scenarios

  • Outfit Choice: A person has 3 different suits and 4 different shirts. Ways to choose one of each: 3×4=123 \times 4 = 12 ways.
  • Hall Doors: A hall has 6 doors. Ways to enter through one door and leave through a different door:
    • Stage I (Enter): 6 ways.
    • Stage II (Leave): 5 ways.
    • Total = 6×5=306 \times 5 = 30 ways.