Factorials
How many ways are there of arranging three objects in a row?
If you try this problem by attempting to find all of the arrangements,
you will find that there are six arrangements (ABC, BCA, CAB, ACB, BAC,
and CBA). How about for four objects? If you work at this problem
for a while, you'll find that there are 24 ways.
Notice that 6 = 1 × 2 × 3 and
24 = 1 × 2 × 3 × 4.
In general, for n objects, there are
1 × 2 × 3 × ... × n
different ways of arranging them. This number is called
"n factorial" and is written n!. n!
grows very quickly, as the following table shows:
| n | n!
|
|---|
| 0 | 1
| | 1 | 1
| | 2 | 2
| | 3 | 6
| | 4 | 24
| | 5 | 120
| | 6 | 720
| | 7 | 5040
| | 8 | 40,320
| | 9 | 362,880
| | 10 | 362,8800
| | 11 | 39,916,800
| | 12 | 479,001,600
| | 13 | 6,227,020,800
| | 14 | 87,178,291,200
| | 15 | 1,307,674,368,000
|
Note that 15! is already larger than one
trillion! Because factorials grow
so quickly, a problem that involves checking all arrangements of
a number of items quickly becomes unsolvable for even thirty items
(for example, the Travelling Salesman problem).
You may want to check out some
numbers that are really large.
There are several uses of factorials in mathematics. For example,
see my prime gaps page.
Last updated September 23, 2001.
URL: http://www.stormloader.com/ajy/factorial.html
For questions or comments email James Yolkowski.
Math Lair home page
|
|