## What Is a Permutation?

A permutation is a mathematical calculation of the number of ways a particular set can be arranged, where the order of the arrangement matters.

## Formula and Calculation of Permutation

The formula for a permutation is:

P(n,r) = n! / (n-r)!

where

n = total items in the set; r = items taken for the permutation; "!" denotes factorial

The generalized expression of the formula is, "How many ways can you arrange 'r' from a set of 'n' if the order matters?" A permutation can be calculated by hand as well, where all the possible permutations are written out. In a combination, which is sometimes confused with a permutation, there can be any order of the items.

### Key Takeaways

• Premutation is the number of ways a set can be arranged.
• Roughly, it means, “how many ways can something be arranged.”
• The order of numbers in a permutation, with a combination, however, the order does not matter.

## What Permutation Can Tell You

A simple approach to visualize a permutation is the number of ways a sequence of a three-digit keypad can be arranged. Using the digits 0 through 9, and using a specific digit only once on the keypad, the number of permutations is P(10,3) = 10! / (10-3)! = 10! / 7! = 10 x 9 x 8 = 720. In this example, order matters, which is why a permutation produces the number of digit entryways, not a combination.

In finance and business, here are two examples. First, suppose a portfolio manager has screened out 100 companies for a new fund that will consist of 25 stocks. These 25 holdings will not be equal-weighted, which means that ordering will take place. The number of ways to order the fund will be: P(100,25) = 100! / (100-25)! = 100! / 75! = 3.76E + 48. That leaves a lot of work for the portfolio manager to construct his fund!

An easier example would be, say a company wants to build out its warehouse network across the country. The company will commit to three locations out of five possible sites. Order matters because they will be built sequentially. The number of permutations is: P(5,3) = 5! / (5-3)! = 5! / 2! = 60.

## Permutations vs. Combinations

Both permutation and combinations involve a group of numbers. However, with permutations the order of the numbers matters. With combinations, the ordering does not matter.  For example, with permutation, the order matters, such as the case with a locker combination.

Locker combos are, thus, not combinations. They are permutations. A locker combo must be entered exactly as scripted, such as 6-5-3, or it will not work. If it were a true combination then the numbers could be entered in any order and work.

There are various types of permutations as well. You can find the number of ways of writing a group of numbers. But you can also find permutations with repetition. That is, the total number of permutations when the numbers can be used more than once or not at all.
{"ft_lang_label":"__label__en","ft_lang_prob":0.91345924,"math_prob":0.99040675,"size":2874,"snap":"2020-24-2020-29","text_gpt3_token_len":678,"char_repetition_ratio":0.18850175,"word_repetition_ratio":0.009823183,"special_character_ratio":0.250174,"punctuation_ratio":0.14695945,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99733025,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-06-01T02:45:31Z\",\"WARC-Record-ID\":\"<urn:uuid:37c6664b-2050-4da6-9cf1-260d5525bd94>\",\"Content-Length\":\"102061\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f562d0f2-341f-46cd-9a76-51c80495c950>\",\"WARC-Concurrent-To\":\"<urn:uuid:1d4cd3c5-3584-488d-9583-45aead67607f>\",\"WARC-IP-Address\":\"199.232.66.133\",\"WARC-Target-URI\":\"https://www.investopedia.com/terms/p/permutation.asp\",\"WARC-Payload-Digest\":\"sha1:I75OO7LDU37YFKEJ6RUHW5HESMYZKQXG\",\"WARC-Block-Digest\":\"sha1:PKRJ6K7MUZ44O2PP6W7O4ID7HNTUM2PI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347413901.34_warc_CC-MAIN-20200601005011-20200601035011-00415.warc.gz\"}"}