Advanced Counting Problems
127 words
1 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Advanced Counting Problems ## Circular Permutations Number of ways to arrange $n$ distinct objects in a circle: $(n-1)!$ **Reasoning:** Rotations are considered identical, so fix one object and arrange the remaining $n-1$ objects relative to it. ## Permutations with Restrictions **Example:** Arrange 5 people in a...

Advanced Counting Problems
Circular Permutations
Number of ways to arrange n distinct objects in a circle: (n−1)!
Reasoning: Rotations are considered identical, so fix one object and arrange the remaining n−1 objects relative to it.
Permutations with Restrictions
Example: Arrange 5 people in a line such that A and B are not adjacent.
Total arrangements: 5!=120 Arrangements where A and B are adjacent: treat AB as one unit → 4!×2=48 Arrangements where A and B are NOT adjacent: 120−48=72
Combinatorial Identities
- (kn)=(k−1n−1)+(kn−1) (Pascal)
- ∑k=0n(kn)=2n
- (kn)=(n−kn)
- (0n)+(2n)+(4n)+⋯=2n−1 Join Discord PreviousAdvanced CountingNextPigeonhole & Inclusion-Exclusion