プリンキピア

第7章確率

Factorials階乗

The pattern we see in Example 7.4 occurs commonly enough that we have a name for it: factorial.
For any positive whole number n, we define the factorial of n (denoted n! and read "n factorial") to be the product of every whole number less than or equal to n. We also define 0! to be equal to one. We will use factorials in a couple of different contexts, so let's get some practice doing computations with them.
英語のヒント
例題7.4に見られるパターンはよく現れるので、名前がついている。階乗である。どの正の整数nについても、nの階乗(n!と書き、「nの階乗」と読む)を、n以下のすべての整数の積と定義する。また、0!は1に等しいと定義する。階乗はいくつかの場面で使うので、計算の練習をしよう。
Example 7.5例題 7.5

Computing Factorials階乗を計算する

Compute the following:
英語のヒント
次を計算せよ:
  1. 4!
  2. 8!6!
  3. 9!3!4!
Solution解答
  1. 4!=4×3×2×1=24
  2. There are two ways to approach this calculation. The first way is to compute the factorials first, then divide:
    英語のヒント
    この計算には2つの進め方がある。1つ目は、まず階乗を計算してから割る方法である:
    8!6!=8×7×6×5×4×3×2×16×5×4×3×2×1=40,320720=568!6!=8×7×6×5×4×3×2×16×5×4×3×2×1=40,320720=56
    However, there is an easier way! You may notice in the second step that there are several terms that can be canceled; that’s always the case whenever we divide factorials. In this case, notice that we can rewrite the numerator like this:
    英語のヒント
    しかし、もっと簡単な方法がある!2番目の手順で、消せる項がいくつかあることに気づくかもしれない。階乗を割るときは、いつもそうである。この場合、分子を次のように書き直せることに注意しよう:
    8!=8×7×(6×5×4×3×2×1)=8×7×6!
    With that in mind, we can proceed this way by canceling out the 6!:
    英語のヒント
    それを念頭に置いて、6!を消してこのように進められる:
    8!6!=8×7×𝟔!𝟔!=8×7=56
    That’s much easier!
    英語のヒント
    ずっと簡単である!
  3. Let’s approach this one using our canceling technique. When we see two factorials in either the numerator or denominator, we should focus on the larger one first. So:
    英語のヒント
    これは、消す技法を使って進めよう。分子か分母に2つの階乗があるときは、まず大きいほうに注目すべきである。だから:
    9!3!4!=9×8×7×6×5×4!3!4!=9×8×7×6×53×2×1=9×8×7×5=2,520

Permutations順列

As we’ve seen, factorials can pop up when we’re computing permutations. In fact, there is a formula that we can use to make that connection explicit. Let’s define some notation first. If we have a collection of n objects and we wish to create an ordered list of r of the objects (where 1≤r≤n), we’ll call the number of those permutations nPr (read “the number of permutations of n objects taken r at a time”). We formalize the formula we'll use to compute permutations below.
英語のヒント
これまで見たように、順列を計算しているときに階乗が現れることがある。実際、そのつながりをはっきりさせる公式がある。まず記号を定義しよう。n個の物の集まりがあり、そのうちr個の物の順序のついた列を作りたいとき(ここで1≤r≤n)、それらの順列の数をnPrと呼ぶ(「n個の物からr個とる順列の数」と読む)。順列を計算するのに使う公式を次に正式に示す。
If you wondered why we defined 0!=1 earlier, it was to make formulas like this one work; if we have n objects and want to order all of them (so, we want the number of permutations of n objects taken n at a time), we get nPn=n!(n−n)!=n!0!=n!1=n!. Next, we’ll get some practice computing these permutations.
英語のヒント
なぜ前に0!=1と定義したのかと思ったなら、このような公式がうまくいくようにするためである。n個の物があってそのすべてを順に並べたい(つまり、n個の物からn個とる順列の数が欲しい)なら、nPn=n!(n−n)!=n!0!=n!1=n!となる。次に、これらの順列を計算する練習をする。
Example 7.6例題 7.6

Computing Permutations順列を計算する

Find the following numbers:
英語のヒント
次の数を求めよ:
  1. The number of permutations of 12 objects taken 3 at a time
    英語のヒント
    12個の物から3個とる順列の数
  2. The number of permutations of 8 objects taken 5 at a time
    英語のヒント
    8個の物から5個とる順列の数
  3. The number of permutations of 32 objects taken 2 at a time
    英語のヒント
    32個の物から2個とる順列の数
Solution解答
  1. 12P3=12!(12−3)!=12!9!=12×11×10×𝟗!𝟗!=12×11×10=1,320
  2. 8P5=8!(8−5)!=8×7×6×5×4×𝟑!𝟑!=8×7×6×5×4=6,720
  3. 32P2=32!(32−2)!=32×31×𝟑𝟎!𝟑𝟎!=32×31=992
Example 7.7例題 7.7

Applying Permutations順列を当てはめる

  1. A high school graduating class has 312 students. The top student is declared valedictorian, and the second-best is named salutatorian. How many possible outcomes are there for the valedictorian and salutatorian?
    英語のヒント
    ある高校の卒業生は312人である。いちばん優秀な学生が卒業生総代とされ、2番目の学生が次席総代とされる。総代と次席総代の結果は何通り可能か。
  2. In the card game blackjack, the dealer’s hand of 2 cards is dealt with 1 card faceup and 1 card facedown. If the game is being played with a single deck of (52) cards, how many possible hands could the dealer get?
    英語のヒント
    カードゲームのブラックジャックでは、ディーラーの2枚の手札は、1枚は表向き、1枚は裏向きで配られる。1組(52枚)の山札でゲームをしているなら、ディーラーの手札は何通り可能か。
  3. The University Combinatorics Club has 3 officers: president, vice president, and treasurer. If there are 18 members of the club, how many ways are there to fill the officer positions?
    英語のヒント
    大学の組み合わせ論クラブには、会長、副会長、会計の3人の役員がいる。クラブの部員が18人なら、役員の埋め方は何通りあるか。
Solution解答
  1. This is the number of permutations of 312 students taken 2 at a time, and 312P2=97,032.
    英語のヒント
    これは312人の学生から2人とる順列の数で、312P2=97,032である。
  2. We want the number of permutations of 52 cards taken 2 at a time, and 52P2=2,652.
    英語のヒント
    52枚のカードから2枚とる順列の数が欲しいので、52P2=2,652である。
  3. Here we’re looking for the number of permutations of 18 members taken 3 at a time, and 18P3=4,896.
    英語のヒント
    ここでは18人の部員から3人とる順列の数を求めていて、18P3=4,896である。