Permutations with Restrictions: Solving a Combination Question

  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Combination
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
11 replies · 2K views
member 428835

Homework Statement


how many ways can ##a,b,c,d,e,f,g,h,i,j## (first ten letters of the alphabet) be interchanged if ##a,b,c## must be adjacent and if ##d## cannot be touching the ##a## nor can it touch the ##b##?

The Attempt at a Solution


to start, i figure we can take the total number of ways that ##a,b,c## without the ##d## restriction and then subtract the ways the ##d## mingles with the ##a,b##. thus, we have (i think)
$$3!8! - 3 \times 3!7!$$

thanks for the help!
 
on Phys.org
actually, i think i need to make some cases, thus would it be:
$$3!8! - (3\times 2!2! + 4 \times 2!)7!$$
where the first case is when we have the ##a,b## adjacent and the second case we have the ##c## always in the middle.

what do you think?
 
hmmmm how about $$3!8! - (2 \times 2!2! + 4 \times 2!)7!$$ if the ##a,b## are adjacent we have ##2!## spots for them and then ##2!## spots for them and the ##c##. this then leaves us with ##2## spots for the ##d## to still touch the ##a,b##.

we also have the situation where the ##a,b## are not adjacent, and the ##c## is in the middle. thus, there are ##2!## ways to arrange the ##a,b## around the ##c##. however, there are now ##4## spots we can place the ##d##.

without the ##7!## this leaves only 16 arrangements. that sounds good or too much?
 
joshmccraney said:
hmmmm how about $$3!8! - (2 \times 2!2! + 4 \times 2!)7!$$ if the ##a,b## are adjacent we have ##2!## spots for them and then ##2!## spots for them and the ##c##. this then leaves us with ##2## spots for the ##d## to still touch the ##a,b##.
After placing the c, I only see one spot for d to go to touch one of a, b.
we also have the situation where the ##a,b## are not adjacent, and the ##c## is in the middle. thus, there are ##2!## ways to arrange the ##a,b## around the ##c##. however, there are now ##4## spots we can place the ##d##.
I only see two for the d.
Placing d must not disrupt the existing assumed adjacencies.
 
haruspex said:
After placing the c, I only see one spot for d to go to touch one of a, b.
Abdc
Badc
Dabc
Dbac
Cabd
Cbad
Cdab
Cdba

I think there's 8, right?
 
haruspex said:
Your 3!8! counts only cases where a, b, c form an adjacent triple. Abdc is not one of those, so it doesn't need to be subtracted.
great call! i don't know how i missed this! just for completeness, is it $$3!8! - (2 \times 2! + 2 \times 2!)7!$$
thanks for your help!
 
Yes. That answer is correct.
 
hmm. A soldier of me just reported that my name has been mentioned in this thread ##7\times## :approve:
Anyway,glad that you solved a question involving my name. :wink:
 
It was anything but easy! Thank goodness for pf!