Last Time | Next Time |
Now, if each vertex represents a unique individual (we name them), then Pascal's triangle tells us all the different Facebooks possible, of each type. If everyone's friends with everyone else, then the graphs we can get will look like the complete graphs. They're very friendly graphs!
Now how many different Facebook configurations are there for, say
Each choice of a different set of friendships results in a different Facebook. So we begin by asking how many arcs X are possible, and then asking how many ways can we pick Y arcs from X?
How do we use Pascal's triangle to find the answer for a given number of people? We first find the number of arcs for the given number of people (the appropriate triangular number), and then read off the number of different ways of having a given number of Facebook friendships from the "arc row" of the table.
The same process works if we want to decide questions like Pascal's about boys and girls, such as
You have four extra tickets to a concert; in how many ways could you choose a set of four friends from your seven favorite friends? (Notice that it's the same number of ways as the number of ways of excluding three friends: the table is symmetric!)
Use the seven row of Pascal's triangle, and go to the "choose 4" entry. The number of things to choose from tells us the row, and the number of things to choose is the entry in that row, and note that we count the entries across a row starting from 0.
Let's use the formula for computing the entry in any row of Pascal's triangle (choose 0, choose 1, ..., choose \(n\))) to check our answer:
\[ C^n_p = \frac{n!}{p!(n-p)!} \] or \[ {n \choose p} \]
(and we say "\(n\) choose \(p\)").
\[ C^7_4 = \frac{7!}{4!(7-4)!} = \frac{7 \cdot 6 \cdot 5 \cdot 4!}{4!3!} = \frac{7 \cdot 6 \cdot 5}{3!} = \frac{7 \cdot 6 \cdot 5}{6} = 35 \]
Remember that that exclamation point (!) means to multiply all the natural numbers from \(n\) down to 1. So, for example, \[ 6! = 6 \cdot 5 \cdot 4 \cdot 3 \cdot 2 \cdot 1 = 720 \] We define \(1! = 1\).
Oddly enough, we also define \(0! = 1\).
\[ (a+b)^n \]
So, for example,
\[ (a+b)^0=1 \] \[ (a+b)^1=1a+1b \] \[ (a+b)^2=1a^2+2ab+1b^2 \] \[ (a+b)^3=1a^3+3a^2b+3ab^2+1b^3 \] \[ (a+b)^4=1a^4+4a^3b+6a^2b^2+4ab^3+1b^4 \]
(see your assigned reading).
I hope that you noticed Pascal's triangle peeking out from the right hand sides above!
Do you remember that the Chinese translation of Yang Hui's triangle has the words "to the 4th power" (etc.) in it? These are the powers, of these "binomials".
If it's a fair six-sided die, the probability of rolling a six is 1/6. The probability of rolling a six is \(a=1/6\); then the probability that you don't roll a six is \(b=5/6\).
Let's roll four time:
\[ (a+b)^4=1a^4+4a^3b+6a^2b^2+4ab^3+1b^4 \] Then \[ \left(\frac{1}{6}+\frac{5}{6}\right)^4=1\left(\frac{1}{6}\right)^4+4\left(\frac{1}{6}\right)^3\left(\frac{5}{6}\right)^1+6\left(\frac{1}{6}\right)^2\left(\frac{5}{6}\right)^2+4\left(\frac{1}{6}\right)^1\left(\frac{5}{6}\right)^3+1\left(\frac{5}{6}\right)^4 \]
Since every denominator has a \(6^4=1296\) in it, we can re-write the probabilities in perhaps a more intuitive way: \[ \left(\frac{1}{6}+\frac{5}{6}\right)^4= \frac{ 1}{1296} + \frac{ 20}{1296} + \frac{150}{1296} + \frac{500}{1296} + \frac{625}{1296} \]
\[ 1 = P(\text{4 sixes} ) + P(\text{3 sixes} ) + P(\text{2 sixes} ) + P(\text{1 sixes} ) + P(\text{0 sixes} ) \]
So only 1/1296 times will you roll a "yahtze" of four sixes.
You'll roll
For example, suppose that the probability that you have a cold on a given winter day is \(a=1/100\); then the probability that you don't have a cold is \(b=99/100\).
Let's suppose that winter is 90 days long. What is the probability that you have a cold-free winter? We need to compute the 90th row in the table, which has some really big numbers!
\[ \left(\frac{1}{100}+\frac{99}{100}\right)^{90} \]
If you're wondering where that 4005 comes from, it's the triangular entry of the 90th row of Pascal's triangle (third entry from the left, choosing 2): \[ C^{90}_2 = \frac{90!}{2!88!} = \frac{90 \cdot 89}{2} = 4005 \]
It's also the third entry from the right: remember that the triangle is symmetric.
The tetrahedral entry of the 90th row of Pascal's triangle: \[ C^{90}_3 = \frac{90!}{3!87!} = \frac{90 \cdot 89 \cdot 88}{3 \cdot 2} = 117480 \]
(The great news is that it reduces to the Fraudini trick!) It seems that the Egyptians didn't mind doubling things: that was easy for them; and that's the key to Egyptian multiplication.
(I underline "distinct" because you cannot repeat powers: otherwise you could write, for example,
1 | 42 | |
2 | ||
4 | ||
8 | ||
16 | ||
32 | Too big! |
Now add up those rows marked with an asterix (*), and you'll get the answer (966).
I generally double the larger of the two numbers: as a general rule that makes the table shorter.
1 | 321 | |
2 | ||
4 | ||
8 | ||
16 | ||
32 | ||
64 | ||
128 | Too big! |
Now add up those rows marked with an asterix (*), and you'll get the answer (35952).
Watch Dave Brubeck's leg, counting out the rhythm....