0

One of the first things that is taught about Permutations is the fairly simple method for calculating how many possible permutations there are. Simply take the number of "events" (eg. the number of characters in a password, the number of bingo balls pulled from the roller, the number of cards drawn, etc.) and square the total number of possibilities for each event (eg. the number of character which may be used for a password, the total number of bingo balls, the number of faces there are for cards in a deck) that many times.

For example, a 4-digit PIN made up of numbers from 0-9 has 10^4 permutations.

However, I wonder if it is possible to calculate how many of a specific category of permutations exist within a given set of permutations. To use the PIN example again- how would one calculate how many Permutations there are which all end in 1?

If it were a 9-Digit PIN, how would one calculate how many permutations there are which all end with 3 consecutive 1s, but no other sets of 3 consecutive 1s anywhere else within the sequence (IE, 726-483-111 would be a valid permutation, but 111-234-111 would not be- since there is another set of 111 at the beginning of the sequence)

If having fewer possibilities makes it at all easier, consider the same question but the PIN must consist only of 1s and 2s. That is to say, for a 9-digit PIN, 212-212-111 would be valid, but 211-122-111 would not be.

  • 2
    First, I encourage you to reserve the word "permutations" to specifically only refer to arrangements such that each possible element appears in the arrangement exactly once. The types of objects you are counting I would instead use the word "arrangement" instead. With regards to the number of arrangements of length $4$ ending in a $1$ there is a clear bijection to the set of arrangements of length $3$... seen by either appending or removing that $1$ at the end. As such the number of length $4$ ending in a $1$ arrangements is the same as the number of length $3$ regardless, $10^3$ – JMoravitz Aug 10 '22 at 12:07
  • As we move to the last questions you ask, those do get more tedious and difficult to quickly describe, but techniques exist... look into possibly using inclusion-exclusion, generating functions, or recursive sequences to find those values. – JMoravitz Aug 10 '22 at 12:09
  • There is an underlying problem that has been focused on by the previous comments. I will state it explicitly. (Perhaps) unlike other academic subjects, you can't learn Combinatorics (or any Math topic) by memorization. Instead, you have to treat the topic like a foreign language, and strive to become fluent in this language. The only successful approach that I know of is by finding the right Math book (perhaps supported by a teacher), opening the book to page 1, and attacking. I feel that $75%-80%$ of the fluency comes from the exercises, so you want a book that has many exercises. – user2661923 Aug 10 '22 at 13:00

0 Answers0