Fundamental Counting Principles and Permutations Study Guide
Basics of Factorials
- Definition: The factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n.
- Specific Values to Memorize (Yad karna hai):
- 8!=8×7×6×5×4×3×2×1=40320
- 7!=7×6×5×4×3×2×1=5040
- 6!=6×5×4×3×2×1=720
- 5!=5×4×3×2×1=120
- 4!=4×3×2×1=24
- 3!=3×2×1=6
- 2!=2×1=2
- 1!=1
- 0!=1
- Important Notes and Constraints:
- Negative numbers and fractions do not have standard factorials ((−ve)! and (Fraction)! are marked as invalid or special cases).
Factorial Properties and Expansion Rules
- Fundamental Recursive Property: n!=n(n−1)!
- Higher Order Expansions:
- n!=n(n−1)(n−2)!
- n!=n(n−1)(n−2)(n−3)!
- Example for 5!:
- 5!=5×4.3!
- 5!=5×4!
- 5!=5×4×3×2!
- Example for (n+1)!:
- (n+1)!=(n+1)(n+1−1)!=(n+1)n!
- (n+1)!=(n+1)(n)(n−1)!
- Logic for 0!=1:
- Using the formula n!=n(n−1)!, if we set n=1, then 1!=1(1−1)!→1=1(0!), therefore 0!=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):
- 38!39!=38!39×38!=39
- Example 2 (University Tag: MUST):
- 6!−6=720−36 (Note: Transcript calculation shows 720−36=684).
- Example 3 (University Tag: NUST):
- 9!11!−10!=9!11×10×9!−10×9!
- 9!10!(11−1)=9!10!×10=9!10×9!×10=100
- Example 4 (University Tags: FAST, NUST, NED, GIKI):
- (n−1)!(n+1)!=(n−1)!(n+1)(n)(n−1)!=(n+1)n=n2+n
- Example 5:
- (n−1)!n!=(n−1)!n(n−1)!=n
- Example 6 (Which one is Unity?):
- (n+1)!n!×(n+1)=(n+1)n!n!×(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×...
- Example: Traveling from City A to City C through City B.
- Stage I (A to B): 2 ways (m1=2).
- Stage II (B to C): 3 ways (m2=3).
- Total ways from A to C = 2×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+m2
- Example: Traveling from City A to City B.
- Option I: 3 Trains.
- Option II: 5 Buses.
- Total ways = 3+5=8.
Permutations
- Definition: A selection and arrangement where order matters.
- Case 1: Repetition is NOT allowed:
- Formula: nPr=(n−r)!n!
- This represents the selection of r objects from n distinct objects at a particular time.
- Case 2: Repetition IS allowed:
- Case 3: Some objects are the same (Identical items):
- Formula: p!q!r!n!
- Word Formation Example (CAT):
- Total letters (n) = 3 (C, A, T).
- If using 2 letters at a time: 3P2=(3−2)!3!=16=6 words (CA, AC, AT, TA, CT, TC).
- If using 3 letters at a time: 3P3=3!=6 words (CAT, CTA, ATC, ACT, TAC, TCA).
- Example: "COURAGE" (7 distinct letters):
- 3 letters at a time: 7P3=7×6×5=210.
- 4 letters at a time: 7P4=7×6×5×4=840.
- All letters at a time: 7!=5040.
- Example: "LETTER" (6 letters, E repeated twice, T repeated twice):
- Arrangement: 2!2!6!=4720=180.
- Example: Repetition Allowed cases:
- "COURAGE": 77 (if all 7 spots).
- "COVID": 55.
- "BOOK": 44.
- Example with 3 spots from "LETTER": 63=216.
Advanced Word Problems (Repetitive vs Non-Repetitive)
- Non-Repeated Letters (Tricks):
- "MACHINE": n=7. Total words (RNA - Repetition not allowed) = 7!. Total words (RA - Repetition allowed) = 77.
- "EDUCATION": n=9. RNA = 9!. RA = 99.
- "SMART": n=5. RNA = 5!. RA = 55.
- Repeated Letters (Tricks):
- "SISTER": 6 letters (S:2, I:1, T:1, E:1, R:1). Total = 2!6!.
- "LETTER": 6 letters (L:1, E:2, T:2, R:1). Total = 2!2!6!.
- "MISSISSIPPI": 11 letters (M:1, I:4, S:4, P:2). Total = 4!4!2!11!.
Vowels and Consonants Constraints
- Vowels Together Rule: Treat the group of vowels as a single entity.
- Formula: (m−n+1)!×n!, where m is total letters and n is the number of vowels.
- Example "MACHINE": Total letters=7, Vowels (A,I,E)=3. Remaining Consonants=4. Step: (4+1)!×3!=5!×3!.
- Example "LEARN": Total=5, Vowels (E,A)=2. Step: (3+1)!×2!=4!×2!.
- Example "OPTICAL": Total=7, Vowels (O,I,A)=3. Step: (4+1)!×3!=5!×3!.
- Vowels Together with Repetition:
- Example "SISTER": Vowels (I,E)=2. Consonants (S,S,T,R)=4. Total groups = 4+1=5. Calculation: 2!5!×2! (dividing by 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: 2!×2!×2!(6+1)!×5! (considering repeats of P, R, and A).
- Vowels NOT Together:
- Strategy: Total Permutations - (Vowels Together).
- Example "COVID": Total=5!. Together=4!×2!. Not together = 5!−(4!×2!).
- Consonants Together:
- Example "JUDGE": Total=5. Consonants (J,D,G)=3. Vowels (U,E)=2. Calculation: (2+1)!×3!=3!×3!=36.
- Positional Constraints:
- "MATRIX" starts with M: 1×5!=120.
- "MATRIX" starts with M and ends with X: 1×4!×1=24.
- Using digits 1, 2, 3, 4, 5:
- Repetition Not Allowed (RNA):
- 3-digit numbers: 5×4×3=60.
- 4-digit numbers: 5×4×3×2=120.
- Repetition Allowed (RA):
- 3-digit numbers: 5×5×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=100.
- 4-digit numbers: 5×5×4×3=300.
- Even and Odd Numbers (RNA) from 0, 3, 4, 5, 6:
- Total Numbers: 4×4×3×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=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,000.
Practical Scenarios
- Outfit Choice: A person has 3 different suits and 4 different shirts. Ways to choose one of each: 3×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=30 ways.