Math ClubMath Club
v1 · padrão canônico

Lesson 37 — Permutations and Arrangements

Total permutation Pn = n!. Arrangement A(n,p). When order matters.

Used in: 1.º ano EM (15 anos) · Equiv. Math A japonês · Equiv. Klasse 10 alemã

Pn=n!,Anp=n!(np)!P_n = n!, \qquad A_n^p = \frac{n!}{(n-p)!}
Choose your door

Rigorous notation, full derivation, hypotheses

Definitions

Factorial

n!=n(n1)(n2)1n! = n \cdot (n-1) \cdot (n-2) \cdots 1. Convention: 0!=10! = 1.

Growth:

nnn!n!
5120
103,628,800
202.4×1018\approx 2.4 \times 10^{18}
70>10100> 10^{100}
170overflow in float64

Stirling's approximation: n!2πn(n/e)nn! \approx \sqrt{2\pi n}(n/e)^n.

Simple permutation

Pn=n!P_n = n! — ways to order nn distinct objects in a line.

Permutation with repetition

For nn objects with n1n_1 of type 1, n2n_2 of type 2, ..., nkn_k of type kk: Pnn1,n2,,nk=n!n1!n2!nk!P_n^{n_1, n_2, \ldots, n_k} = \frac{n!}{n_1! \cdot n_2! \cdots n_k!}

Anagrams of "ARARA" (3 A's, 2 R's): 5!/(3!2!)=105!/(3! \cdot 2!) = 10.

Simple arrangement

Anp=n(n1)(n2)(np+1)=n!(np)!A_n^p = n(n-1)(n-2) \cdots (n-p+1) = \frac{n!}{(n-p)!}

Ways to order pp objects selected from nn available.

Circular permutation

nn objects in a circle: (n1)!(n-1)!. Reason: the "first position" is arbitrary.

Difference between permutation and arrangement

  • Permutation: uses all nn objects.
  • Arrangement: selects pnp \leq n and orders them.

When p=np = n: arrangement equals permutation.

Exercise list

46 exercises · 11 with worked solution (25%)

Application 34Understanding 2Modeling 8Challenge 1Proof 1
  1. Ex. 37.1Application
    5!5!. (Ans: 120120.)
  2. Ex. 37.2Application
    8!/5!8!/5!. (Ans: 336336.)
  3. Ex. 37.3ApplicationAnswer key
    How many anagrams of "MAR"? (Ans: 66.)
  4. Ex. 37.4Application
    How many anagrams of "CASA"? (Ans: 1212.)
  5. Ex. 37.5ApplicationAnswer key
    How many anagrams of "MISSISSIPPI"? (Ans: 3465034\,650.)
  6. Ex. 37.6Application
    A53A_5^3. (Ans: 6060.)
  7. Ex. 37.7ApplicationAnswer key
    A82A_8^2. (Ans: 5656.)
  8. Ex. 37.8Application
    How many lines of 4 people can be formed with 7 candidates? (Ans: 840840.)
  9. Ex. 37.9Application
    Awarding 1st, 2nd, 3rd among 12 athletes. Total? (Ans: 13201\,320.)
  10. Ex. 37.10Application
    How many 3-digit numbers with distinct digits can be formed with {1,2,3,4,5}\{1,2,3,4,5\}? (Ans: 6060.)
  11. Ex. 37.11Application
    Verify 7!/(73)!=7657!/(7-3)! = 7 \cdot 6 \cdot 5.
  12. Ex. 37.12Application
    Solve n!=720n! = 720. (Ans: n=6n = 6.)
  13. Ex. 37.13Application
    Solve An2=30A_n^2 = 30. (Ans: n=6n = 6.)
  14. Ex. 37.14Application
    How many anagrams of "CIDADE"? (Ans: 6!/2!=3606!/2! = 360.)
  15. Ex. 37.15Application
    Anagrams of "BANANA" (3 A's, 2 N's, 1 B). (Ans: 6060.)
  16. Ex. 37.16Application
    How many 5-digit passwords with distinct digits from {0,1,,9}\{0, 1, \ldots, 9\}? (Ans: 3024030\,240.)
  17. Ex. 37.17Application
    How many ways for 6 distinct books to be placed on 3 shelves (2 on each)?
  18. Ex. 37.18Application
    8 people at a round table. How many distinct configurations? (Ans: 7!=50407! = 5\,040.)
  19. Ex. 37.19ApplicationAnswer key
    Circular permutation of nn people: justify (n1)!(n-1)!.
  20. Ex. 37.20Application
    How many anagrams of "AMOR" start with the letter A? (Ans: 66.)
  21. Ex. 37.21Application
    Anagrams of "MATEMATICA" (10 letters: 3 A's, 2 M's, 2 T's, 1 E, 1 I, 1 C). (Ans: 151200151\,200.)
  22. Ex. 37.22ApplicationAnswer key
    How many anagrams of "PROVA" start with a consonant?
  23. Ex. 37.23Application
    Anagrams of "AMOR" with A and O together (in this order). (Treat AO as a block.)
  24. Ex. 37.24Application
    10 students will sit in 10 chairs. 2 friends want to be together. How many configurations?
  25. Ex. 37.25ApplicationAnswer key
    8 people at a round table. 2 want to sit together. How many? (Ans: 26!2 \cdot 6! — treat the pair as a block.)
  26. Ex. 37.26Application
    Anagrams of "LIVRO" that start with a vowel. (Ans: 24!=482 \cdot 4! = 48.)
  27. Ex. 37.27Application
    How many 4-digit numbers with distinct digits from {1,,9}\{1,\ldots,9\}? (Ans: 9876=30249 \cdot 8 \cdot 7 \cdot 6 = 3\,024.)
  28. Ex. 37.28Application
    How many even 4-digit numbers with distinct digits from {1,2,3,4,5}\{1, 2, 3, 4, 5\}?
  29. Ex. 37.29Application
    Solve n!/(n3)!=60n!/(n-3)! = 60. (Ans: n=5n = 5.)
  30. Ex. 37.30ApplicationAnswer key
    Solve (n+1)!n!=5\frac{(n+1)!}{n!} = 5. (Ans: n=4n = 4.)
  31. Ex. 37.31Application
    In a race with 10 athletes, how many different podiums can occur?
  32. Ex. 37.32Application
    Anagrams of "FATORIAL" — all distinct letters? (Ans: 8!=403208! = 40\,320.)
  33. Ex. 37.33Application
    5 cards chosen and ordered in a row from 7 distinct cards: A75=2520A_7^5 = 2\,520.
  34. Ex. 37.34Application
    Verify Anp=nAn1p1A_n^p = n \cdot A_{n-1}^{p-1} for n=6,p=3n = 6, p = 3.
  35. Ex. 37.35Modeling
    Soccer team: 11 players on the field. How many distinct lineups with positioning? (Permutation if the order of players in each position matters.)
  36. Ex. 37.36ModelingAnswer key
    8-character lowercase alphabetic passwords without repetition: A268A_{26}^8.
  37. Ex. 37.37Modeling
    In logistics, the delivery order of 10 packages: 10!10! possible routes (TSP).
  38. Ex. 37.38Modeling
    In a card game, shuffling 52 cards: 52!8×106752! \approx 8 \times 10^{67} — more than the stars in the observable universe.
  39. Ex. 37.39ModelingAnswer key
    In CG, rendering order of 100 polygons: 100!100! — only one is the "correct" back-to-front.
  40. Ex. 37.40ModelingAnswer key
    In DNA, an 8-base sequence (A, T, C, G) where each base appears exactly 2 times: 8!/(2!)48!/(2!)^4.
  41. Ex. 37.41Modeling
    In population genetics, possible orders of 4 alleles = 4!=244! = 24.
  42. Ex. 37.42Modeling
    In ML, permutation feature importance: shuffle one feature, measure prediction drop. How many permutations per feature?
  43. Ex. 37.43Understanding
    Show that Anp=nAn1p1A_n^p = n \cdot A_{n-1}^{p-1}.
  44. Ex. 37.44UnderstandingAnswer key
    Show Pn=AnnP_n = A_n^n.
  45. Ex. 37.45Challenge
    How many anagrams of "AMOR" start with a consonant and end in a vowel?
  46. Ex. 37.46Proof
    Prove Anp=n!/(np)!A_n^p = n!/(n-p)! using FCP.

Sources

  • Algebra and Trigonometry — Jay Abramson et al. (OpenStax) · 2022, 2nd ed · EN · CC-BY · §11.5: counting. Primary source.
  • Introduction to Probability — Joseph Blitzstein, Jessica Hwang · 2019, 2nd ed · EN · free · ch. 1: counting principles.
  • Book of Proof — Richard Hammack · 2018, 3rd ed · EN · free · ch. 3.

Updated on 2026-04-30 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.