In a marathon, there are 14 runners. There are exactly of two runners that are wearing the same color shirt for each color of the rainbow.

###### This is a harder version of an earlier problem.

###### Image Credit: Flickr Mark Mullen.

At the finish line, their configuration is as follows:

- 1 runner between the red pairs,

- 2 runners between the orange pairs,

- 3 runners between the yellow pairs,

- 4 runners between the green pairs,

- 5 runners between the blue pairs,

- 6 runners between the indigo pairs,

- 7 runners between the violet pairs.

If we know that the first runner wore a red shirt, what is the total number of possible configuration(s) of all the runners (from fastest to slowest)?

As an explicit example, if the runners were arranged as ROYGBIVROYGBIV, then there are 6 runners between all of the colored pairs.

×

Problem Loading...

Note Loading...

Set Loading...