Quiz 2

Advanced Counting Problems

127 words
1 min read
Python Week 1: the first filter for runtime behavior
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 nn distinct objects in a circle: (n1)!(n-1)! Reasoning: Rotations are considered identical, so fix one object and arrange the remaining n1n-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!=1205! = 120 Arrangements where A and B are adjacent: treat AB as one unit → 4!×2=484! \times 2 = 48 Arrangements where A and B are NOT adjacent: 12048=72120 - 48 = 72

Combinatorial Identities

  • (nk)=(n1k1)+(n1k)\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k} (Pascal)
  • k=0n(nk)=2n\sum_{k=0}^n \binom{n}{k} = 2^n
  • (nk)=(nnk)\binom{n}{k} = \binom{n}{n-k}
  • (n0)+(n2)+(n4)+=2n1\binom{n}{0} + \binom{n}{2} + \binom{n}{4} + \cdots = 2^{n-1} Join Discord PreviousAdvanced CountingNextPigeonhole & Inclusion-Exclusion
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.