## of Permutations

35 messages · Page 1 of 1 (latest)

graceful bane
#

Let's imagine that instead of writing out a sequence of letters, we're pairing each letter with a number between 1 and 26. This is mathematically equivalent, but it'll make talking about it easier.

#

Now, the first thing to note is that we want arrangements where a, b < c < d < e, f
We can simplify this by selecting arrangements where a < b < c < d < e < f
and multiplying our final solution by four.
The second thing to note is that we don't care at all about the positions of 20 of the letters, which means we can just focus on our six letters and then multiply the number of arrangements we find for that by 20!.

tough girder
#

Hmm. Wait, are there only 5 possible permutations then?

graceful bane
#

I said this was a simplification and how to correct for it.

tough girder
#

ooh

#

that's why you multiply by four

graceful bane
#

Yeah.

tough girder
#

Yeah, okay, that makes sense. I'm sorry lol

#

Is the answer literally just 20! * 4 then?

graceful bane
#

No, it's not.

tough girder
#

c must go in the middle, and d must go before e and f, so that restricts d to that fourth spot, and e and f to those final two spots right?

#

likewise for a,b?

graceful bane
#

...here's how I think about it.

#

Any time you're dealing with permutations, doing some casework can help you build an intuition about the patterns involved.

#

So let's consider the case where (a, b, c, d, e) = (1, 2, 3, 4, 5). How many positions can f occupy in this case?

graceful bane
tough girder
#

1, 2, 3, 4, 5, f and 1, 2, 3, 4, f, 5?

tough girder
#

oh wait

#

lol

tough girder
#

And likewise for f...

#

if you set f, then e can only occupy a singular space

#

so setting e is effectively setting f. so it's just counting how many ways you can set a and e? (namely, two ways for both) so 4 total ways?

graceful bane
tough girder
#

(a, b, c, d, e, f) = (1, 2, 3, 4, 5, f)

tough girder
graceful bane
tough girder
#

fuck.

#

it can literally go in any other spot, yeah..

#

I don't know why I just isolated it to those 6 spots... oh my god.

#

So you can times two that, because the logic works likewise for e...