PracticeVideosBlogFlashcards

14.2 Permutations and Combinations

Key Takeaways

  • Permutations (A_n^m = n! / (n-m)!) count ordered arrangements; Combinations (C_n^m = n! / (m!(n-m)!)) count unordered selections.

  • Fundamental combinatorial identities include symmetry C_n^m = C_n^{n-m} and Pascal's identity C_n^m + C_n^{m-1} = C_{n+1}^m.

  • Core Gaokao strategies: Adjacent elements require the Bundle Method (捆绑法); Non-adjacent elements require the Gap Insertion Method (插空法); Restricted elements/positions require Priority Assignment (优先法).

  • Grouping and distribution problems require dividing by p! for p equal-sized unnamed groups to eliminate overcounting, followed by multiplying by k! when assigning to distinct targets.

  • The Stars and Bars method solves positive integer partition equations x_1 + x_2 + ... + x_k = n with x_i >= 1 yielding C_{n-1}^{k-1} solutions.

Last updated: July 2026

14.2 Permutations and Combinations

Permutations and combinations form the operational core of combinatorial counting in Gaokao Mathematics. While fundamental counting principles dictate when to add or multiply, permutation and combination formulas provide efficient algebraic tools to count ordered arrangements and unordered selections.


1. Mathematical Definitions and Formulas

1.1 Permutations (排列)

A permutation of nn distinct elements taken mm at a time (0≤m≤n0 \le m \le n) is an ordered arrangement of mm elements chosen from the set of nn elements. The total number of permutations is denoted by AnmA_n^m (or P(n,m)P(n, m) or PnmP_n^m) and is calculated by:

Anm=n(n−1)(n−2)⋯(n−m+1)=n!(n−m)!A_n^m = n(n-1)(n-2)\cdots(n-m+1) = \frac{n!}{(n-m)!}

Special Cases:

  • When m=nm = n, it represents a full permutation (全排列): Ann=n!=n×(n−1)×⋯×2×1A_n^n = n! = n \times (n-1) \times \dots \times 2 \times 1.
  • By definition, 0!=10! = 1, which ensures An0=n!n!=1A_n^0 = \frac{n!}{n!} = 1.

1.2 Combinations (组合)

A combination of nn distinct elements taken mm at a time (0≤m≤n0 \le m \le n) is an unordered selection of mm elements chosen from the set of nn elements. The total number of combinations is denoted by CnmC_n^m (or (nm)\binom{n}{m}) and is calculated by:

Cnm=Anmm!=n!m!(n−m)!C_n^m = \frac{A_n^m}{m!} = \frac{n!}{m!(n-m)!}

1.3 Key Combinatorial Identities and Derivations

  1. Symmetry Property (对称性):

    Cnm=Cnn−mC_n^m = C_n^{n-m}

    Combinatorial Proof: Choosing mm elements to include from nn available items is logically equivalent to choosing n−mn-m elements to leave behind.

  2. Pascal's Identity / Recurrence Relation (加法公式 / 杨辉等式):

    Cnm+Cnm−1=Cn+1m(1≤m≤n)C_n^m + C_n^{m-1} = C_{n+1}^m \quad (1 \le m \le n)

    Combinatorial Proof: Consider a set of n+1n+1 elements including a distinguished element xx. To choose mm elements from n+1n+1 elements, split into two mutually exclusive cases:

    • Case 1: Element xx is included. We must choose the remaining m−1m-1 elements from the other nn elements   ⟹  Cnm−1\implies C_n^{m-1} ways.
    • Case 2: Element xx is excluded. We must choose all mm elements from the remaining nn elements   ⟹  Cnm\implies C_n^m ways. Adding the two cases gives Cnm+Cnm−1=Cn+1mC_n^m + C_n^{m-1} = C_{n+1}^m.
  3. Absorption / Reduction Identity:

    kCnk=nCn−1k−1  ⟹  Cnk=nkCn−1k−1k C_n^k = n C_{n-1}^{k-1} \implies C_n^k = \frac{n}{k} C_{n-1}^{k-1}

    Combinatorial Proof: Selecting a committee of kk people from nn people and designating 1 leader is equivalent to picking the leader first (nn choices) and then picking the remaining k−1k-1 members from n−1n-1 people (Cn−1k−1C_{n-1}^{k-1} choices).

  4. Sum of Combinations (Total Subsets):

    ∑k=0nCnk=Cn0+Cn1+Cn2+⋯+Cnn=2n\sum_{k=0}^n C_n^k = C_n^0 + C_n^1 + C_n^2 + \dots + C_n^n = 2^n
Loading diagram...
Taxonomy of Permutation and Combination Strategies

2. Standard Problem-Solving Strategies for Constrained Counting

Gaokao permutation and combination problems frequently introduce spatial, positional, or structural constraints. Five canonical methods govern these problems:

2.1 The Bundle Method for Adjacent Elements (捆绑法)

Applicability: Used when specified elements must be adjacent (必须相邻). Procedure:

  1. Treat the constrained adjacent elements as a single "bundled super-element".
  2. Arrange the super-element along with all remaining unconstrained elements.
  3. Multiply by the internal permutations of the elements within the bundle.

Formula Structure: If kk elements out of nn must be adjacent, total arrangements equal:

N=An−k+1n−k+1×Akk=(n−k+1)!×k!N = A_{n-k+1}^{n-k+1} \times A_k^k = (n-k+1)! \times k!

2.2 The Gap Insertion Method for Non-Adjacent Elements (插空法)

Applicability: Used when specified elements cannot be adjacent (不能相邻). Procedure:

  1. Arrange all unconstrained elements first, creating m+1m+1 available "gaps" (including the two ends) around mm arranged items.
  2. Insert the kk constrained non-adjacent elements into the available gaps (k≤m+1k \le m+1).

Formula Structure:

N=Amm×Am+1k=m!×(m+1)!(m+1−k)!N = A_m^m \times A_{m+1}^k = m! \times \frac{(m+1)!}{(m+1-k)!}

2.3 Priority Assignment for Restricted Positions/Elements (优先法)

Applicability: Used when specific elements must occupy (or avoid) specific positions. Procedure: First satisfy the strict spatial/elemental constraints before arranging or selecting the remaining unrestricted items.


2.4 Grouping and Distribution Strategies (分组与分配问题)

Dividing nn distinct objects into kk groups is a core Gaokao topic:

  1. Unequal Unnamed Grouping (不均匀分组): Dividing nn objects into groups of sizes m1,m2,…,mkm_1, m_2, \dots, m_k (where all mim_i are distinct and ∑mi=n\sum m_i = n):

    N=Cnm1×Cn−m1m2×⋯×CmkmkN = C_n^{m_1} \times C_{n-m_1}^{m_2} \times \dots \times C_{m_k}^{m_k}
  2. Equal Unnamed Grouping (均匀分组): Dividing nn objects into pp groups of equal size mm (n=p×mn = p \times m). Since the groups are unnamed and identical in size, multiplying combinations overcounts by the p!p! permutations of the groups themselves:

    N=Cnm×Cn−mm×⋯×Cmmp!N = \frac{C_n^m \times C_{n-m}^m \times \dots \times C_m^m}{p!}
  3. Distribution to Named Targets (定向分配): If the groups are subsequently assigned to pp distinct entities (e.g., pp different schools or cities), multiply the grouping count by p!p!:

    Nnamed distribution=Ngrouping×p!N_{\text{named distribution}} = N_{\text{grouping}} \times p!

2.5 The Stars and Bars Method (隔板法)

Applicability: Finding the number of positive integer solutions to x1+x2+⋯+xk=nx_1 + x_2 + \dots + x_k = n where xi≥1x_i \ge 1. Procedure: Place nn identical items in a line, creating n−1n-1 spaces between them. Insert k−1k-1 dividers (bars) into these n−1n-1 spaces. Formula:

N=Cn−1k−1N = C_{n-1}^{k-1}

If xi≥0x_i \ge 0 (non-negative integer solutions), substitute yi=xi+1  ⟹  y1+y2+⋯+yk=n+ky_i = x_i + 1 \implies y_1 + y_2 + \dots + y_k = n + k with yi≥1y_i \ge 1:

N=Cn+k−1k−1N = C_{n+k-1}^{k-1}

3. Classic Gaokao Worked Examples and Solutions

Worked Example 1: Combined Adjacent and Non-Adjacent Restrictions

Problem Statement: Seven students A,B,C,D,E,F,GA, B, C, D, E, F, G stand in a single line for a photo. Calculate the number of valid line-up arrangements under the following simultaneous conditions:

  1. Students AA and BB must stand adjacent to each other.
  2. Students CC and DD cannot stand adjacent to each other.

Detailed Mathematical Solution:

  • Step 1: Bundle the adjacent students AA and BB. Treat (A,B)(A, B) as a single bundled block XX. Inside block XX, AA and BB can be arranged in A22=2!=2A_2^2 = 2! = 2 ways.
  • Step 2: Identify the remaining unconstrained entities. The entities to be arranged first (excluding CC and DD) are block XX, student EE, student FF, and student GG. This gives 44 items in total.
  • Step 3: Arrange the unconstrained entities to form gaps for CC and DD. Arranging these 44 items (X,E,F,GX, E, F, G) in a row can be done in: A44=4!=24 waysA_4^4 = 4! = 24 \text{ ways}
  • Step 4: Count available gaps for CC and DD. Arranging 44 items creates 4+1=54 + 1 = 5 available gaps (including both ends): ‾ Item1 ‾ Item2 ‾ Item3 ‾ Item4 ‾\underline{\quad} \, \text{Item}_1 \, \underline{\quad} \, \text{Item}_2 \, \underline{\quad} \, \text{Item}_3 \, \underline{\quad} \, \text{Item}_4 \, \underline{\quad}
  • Step 5: Insert non-adjacent students CC and DD into the gaps. We choose 22 distinct gaps out of 55 for CC and DD in order: A52=5×4=20 waysA_5^2 = 5 \times 4 = 20 \text{ ways}
  • Step 6: Multiply all stage counts using the Multiplication Principle. Ntotal=A22×A44×A52=2×24×20=960N_{\text{total}} = A_2^2 \times A_4^4 \times A_5^2 = 2 \times 24 \times 20 = 960

Worked Example 2: Grouping and Assigned Distribution

Problem Statement: Six distinct volunteer teachers are to be assigned to 33 different rural schools (S1,S2,S3S_1, S_2, S_3) such that each school receives at least 11 teacher. How many different distribution schemes are possible?

Detailed Mathematical Solution:

  • Step 1: Analyze integer partitions of 66 into 33 positive parts. The number of teachers 66 can be partitioned into 33 positive integer parts in three distinct ways:

    • Pattern 1: Group sizes (4,1,1)(4, 1, 1)
    • Pattern 2: Group sizes (3,2,1)(3, 2, 1)
    • Pattern 3: Group sizes (2,2,2)(2, 2, 2)
  • Case 1: Grouping pattern (4,1,1)(4, 1, 1).

    • Unnamed Grouping: Since two groups have equal size (1,11, 1), divide by 2!2!: Ngroup,1=C64×C21×C112!=15×2×12=15N_{\text{group}, 1} = \frac{C_6^4 \times C_2^1 \times C_1^1}{2!} = \frac{15 \times 2 \times 1}{2} = 15
    • Distribution to 33 distinct schools: Multiply by 3!3!: Ndist,1=15×3!=15×6=90N_{\text{dist}, 1} = 15 \times 3! = 15 \times 6 = 90
  • Case 2: Grouping pattern (3,2,1)(3, 2, 1).

    • Unnamed Grouping: All group sizes are distinct (3,2,13, 2, 1), no division required: Ngroup,2=C63×C32×C11=20×3×1=60N_{\text{group}, 2} = C_6^3 \times C_3^2 \times C_1^1 = 20 \times 3 \times 1 = 60
    • Distribution to 33 distinct schools: Multiply by 3!3!: Ndist,2=60×3!=60×6=360N_{\text{dist}, 2} = 60 \times 3! = 60 \times 6 = 360
  • Case 3: Grouping pattern (2,2,2)(2, 2, 2).

    • Unnamed Grouping: All three groups have equal size (2,2,22, 2, 2), divide by 3!3!: Ngroup,3=C62×C42×C223!=15×6×16=15N_{\text{group}, 3} = \frac{C_6^2 \times C_4^2 \times C_2^2}{3!} = \frac{15 \times 6 \times 1}{6} = 15
    • Distribution to 33 distinct schools: Multiply by 3!3!: Ndist,3=15×3!=15×6=90N_{\text{dist}, 3} = 15 \times 3! = 15 \times 6 = 90
  • Step 2: Sum all cases using the Addition Principle.

    Ntotal=Ndist,1+Ndist,2+Ndist,3=90+360+90=540N_{\text{total}} = N_{\text{dist}, 1} + N_{\text{dist}, 2} + N_{\text{dist}, 3} = 90 + 360 + 90 = 540
Test Your Knowledge

Six people (including Person A and Person B) stand in a line for a photograph. If Person A and Person B cannot stand adjacent to each other, how many different arrangement orderings are possible?

A

240 orderings

B

360 orderings

C

420 orderings

D

480 orderings

Test Your Knowledge

In how many distinct ways can 5 distinct books be divided into 3 bundles such that one bundle contains 3 books, one bundle contains 1 book, and one bundle contains 1 book?

A

20 ways

B

10 ways

C

30 ways

D

60 ways

Test Your Knowledge

How many positive integer solution triplets (x, y, z) satisfy the equation x + y + z = 8, where x >= 1, y >= 1, and z >= 1?

A

15 triplets

B

28 triplets

C

21 triplets

D

36 triplets

Sections you finish are checked off in the contents.