If n is a non-negative integer, then n! is the number of lists of length n that can be made from n symbols, without repetition. Thus 0! = 1 and 1! = 1. If n>1, then n! = n(n − 1)(n − 2) · · · 3 · 2 · 1.
Permutation
a permutation of a set is an arrangement of all of the set’s elements in a row, that is, a list without repetition that uses every element of the set. For example, the permutations of the set X = {1, 2, 3} are the six lists:
a k-permutation is a non-repetitive list made from k elements of X .
General Formula
if 0≤k≤nP(n,k)=(n−k)!n!
n is the set and k is how many we’re choosing
Other Formula
if k>0n!
Example
You deal five cards off of a standard 52-card deck, and line them up in a row. How many such lineups are there that either consist of all red cards, or all clubs?
Solution:
There are 26 red cards. The number of ways to line up five of them is P(26,5) = 26 · 25 · 24 · 23 · 22 = 7, 893, 600.
There are 13 club cards (which are black). The number of ways to line up five of them is P(13,5) = 13 · 12 · 11 · 10 · 9 = 154, 440.
By the addition principle, the answer to our question is that there are P(26,5) + P(13,5) = 8, 048, 040 lineups that are either all red cards, or all club cards.