Solve this problem about paintings that involves permutations

  • Thread starter Thread starter chwala
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
28 replies · 2K views · last reply
chwala
Gold Member
Messages
2,854
Reaction score
436
Homework Statement
A music curator is arranging 14 rare paintings for an exhibition.
The paintings consist of:

4 portraits,
5 landscapes,
3 abstract paintings,
and 2 modern art pieces.

All paintings are distinct. The paintings are arranged in a row along a gallery wall. Find the number of possible arrangements if all 3 abstract paintings are together, but
no portrait is adjacent to a modern painting.
Relevant Equations
Permutation.
Ok, in my thinking i treat the ##3## abstract paintings as one block and considering the 5 landscapes and 4 portraits, i now have a total of 10 distinct items; but before i proceed i was asking can we solve this by excluding the portraits and modern first? work on that Then, can we consider the modern and portraits as one block? and work on subtracting that? my question is basically on the approach; exclusive or inclusive of the modern and portraits, i seek direction on this...
 
Physics news on Phys.org
No they are not the same and neither can a portrait be adjacent to a modern art.
 
Last edited:
chwala said:
No they are not the same and neither can they be adjacent to each other.
The question makes no sense. There are no modern paintings in the exhibition.
 
chwala said:
No they are not the same and neither can they be adjacent to each other.
This answer makes no sense to me. Check your transcription of the question.
 
PeroK said:
The question makes no sense. There are no modern paintings in the exhibition.
2 modern art pieces.
 
chwala said:
2 modern art pieces.
The rule is that no portrait is adjacent to a modern art piece?
 
Looks difficult! I can't immediately see a shortcut. Focus on the two modern art pieces, perhaps?
 
Last edited:
The answer I got was ##(224 \times 9!) \times 6##.

Given that the total number of permutations is ##12!\times 6##, that gives the probability that no portrait is next to a modern art piece of about 0.17. Given a random permutation.

Which seems about right.
 
  • Informative
  • Like
Likes   Reactions: chwala and pbuk
Here's how I did it. Temporarily take the two modern art pieces as indistinguishable. We can multiply by 2 at the end.

There are 66 different possibilities for their position. These must be handled separately depending on:

Whether one or both are at the ends.
How far apart they are: next to each other; one piece between them; or, two or more pieces between them.

The 66 possibilities fall into 7 categories. I calculated the number in each category and the permutations in each category.

Hopefully I got the right answer.
 
PS the key factor is how many spaces are adjacent to the modern art pieces. If they are together at the end, there is only one space (where no portrait may go). If neither is at the end and they have more than one space between them, there are four spaces where no portrait may go.
 
PeroK said:
The answer I got was ##(224 \times 9!) \times 6##.

PeroK said:
Hopefully I got the right answer.

Yes, 487,710,720 verified by computation.
 
  • Like
Likes   Reactions: chwala and PeroK
Does nobody care why a music curator is trying to hang these rare paintings? 🤔
 
  • Haha
  • Like
Likes   Reactions: DEvens, FactChecker, pbuk and 2 others
chwala said:
Homework Statement: A music curator is arranging 14 rare paintings for an exhibition.
The paintings consist of:

4 portraits,
5 landscapes,
3 abstract paintings,
and 2 modern art pieces.

All paintings are distinct. The paintings are arranged in a row along a gallery wall. Find the number of possible arrangements if all 3 abstract paintings are together, but
no portrait is adjacent to a modern painting.

Relevant Equations: Permutation.

Ok, in my thinking i treat the 3 abstract paintings as one block and considering the 5 landscapes and 4 portraits, i now have a total of 10 distinct items;
After the idea the problem is reduced to 12 items, i.e.,
4 portraits,
5 landscapes,
1 abstract paintings group,
and 2 modern art pieces. Permutation in abstract painting group 3! should be maltiplied to the answer or the reduced problem.

For the reduced problem we focus on positons of 2 modern art pieces.
Say we walk and see x pieces before a modern art, y pieces between the modern arts and z pieces after the next modernart to the end.
The number of positons allowed for portraits is
$$N(x,y,z)=(x-1)\theta(x-1)+(y-2)\theta(y-2)+(z-1)\theta(z-1)$$
where ##\theta(x)=1 ## for x>0, otherwise 0.
Thus the number of arrangements is
$$2!4!\sum_{x,y,z \in\{0,1,2,3,4,5,6,7,8,9,10\},x+y+z=10\ } \ _{N(x,y,z)}C_{4}$$
Further 6! should be multiplied for remaining 6 positions.
 
Last edited:
Amended by including ##6##

We consider two cases - what i would call gap method.

Case 1 - Two modern are adjacent ... and considering 5L,2M,1A( 3 abstracts)

##6×2! ×7! ×4!× \binom{9}{4}##

Case 2 - Two modern are separated ... and considering 5L,2M,1A( 3 abstracts)

##6×(8!-(2! ×7!))×4!×\binom {8}{4}##

Case 1 + Case 2 = 487,710, 720.
 
Last edited:
  • Informative
Likes   Reactions: anuttarasammyak
anuttarasammyak said:
After the idea the problem is reduced to 12 items, i.e.,
4 portraits,
5 landscapes,
1 abstract paintings group,
and 2 modern art pieces. Permutation in abstract painting group 3! should be maltiplied to the answer or the reduced problem.

For the reduced problem we focus on positons of 2 modern art pieces.
Say we walk and see x pieces before a modern art, y pieces between the modern arts and z pieces after the next modernart to the end.
The number of positons allowed for portraits is
$$N(x,y,z)=(x-1)\theta(x-1)+(y-2)\theta(y-2)+(z-1)\theta(z-1)$$
where ##\theta(x)=1 ## for x>0, otherwise 0.
Thus the number of arrangements is
$$2!4!\sum_{x,y,z \in\{0,1,2,3,4,5,6,7,8,9,10\},x+y+z=10\ } \ _{N(x,y,z)}C_{4}$$
Further 6! should be multiplied for remaining 6 positions.
$$N(x,y,z)=\max(x-1,0)+\max(y-2,0)+\max(z-1,0)$$
$$=\max(x-1,0)-x+\max(y-2,0)-y+\max(z-1,0)-z+10$$
$$=10-\min(x,1)-\min(y,2)-\min(z,1)$$

Thus N={6,7,8,9}.
Let (M) denote a modern piece and (X) one of its adjacent pieces.

**Coefficient for (N=6):**

There are six possible positions for the portrait: to the left of, between, or to the right of the two blocks "XMX XMX".

The number of arrangements is the same as the number of ways of expressing 6 as the sum of three non-negative integers.

For example,

6=0+0+6=0+1+5=0+2+4= ...

The total number of possibilities is

1+2+3+4+5+6+7=28.


**Coefficient for (N=7):**

There are seven possible positions for the portrait: to the left of or between the blocks "XMX XM".

The number of arrangements is the same as the number of ways of expressing 7 as the sum of two non-negative integers.

For example,

7=0+7=1+6=...


This gives 8 possibilities.

Including the left-right reversal, there are another 8 possibilities.

There are also 8 possibilities corresponding to positions to the right and left of "XMXMX".

Thus, the total is

8+8+8=24.


**Coefficient for (N=8):**

There are eight possible positions for the portrait:

- One position between "MX XM".
- One position to the left of "XMXM".
- One position to the right of "MXMX".
- Nine possibilities corresponding to positions to the right and left of "XMMX".

Thus, the total is

1+1+1+9=12.

**Coefficient for (N=9):**

There is one possible position for the portrait, to the right of "MMX".

Including its left-right reversal, we obtain 2 possibilities.

Therefore,

28+24+12+2=66=##\frac{11(11+1)}{2}.##

This agrees with the total number of non-negative integer solutions of (x+y+z=10), confirming the count.
 
Last edited:
chwala said:
Case 1 + Case 2 = 487,710, 720.

You forgot to multiply by 6 (Case 1 + Case 2 = 81,285,120).

That is an elegant solution - was it inspired by @PeroK's (or @anuttarasammyak's frankly unfathomable) approach?
 
chwala said:
We consider two cases - what i would call gap method.

Case 1 - Two modern are adjacent ... and considering 5L,2M,1A( 3 abstracts)

##2! ×7! ×4!× \binom{9}{4}##

Case 2 - Two modern are separated ... and considering 5L,2M,1A( 3 abstracts)

##(8!-(2! ×7!))×4!×\binom {8}{4}##

Case 1 + Case 2 = 487,710, 720.
Can you explain how those calculations work?
 
  • Like
Likes   Reactions: FactChecker and pbuk
pbuk said:
You forgot to multiply by 6 (Case 1 + Case 2 = 81,285,120).

That is an elegant solution - was it inspired by @PeroK's (or @anuttarasammyak's frankly unfathomable) approach?
Will fix that...
 
PeroK said:
Can you explain how those calculations work?
Case 1

Treat the two modern paintings as one block, leaving 7 units to arrange: 5 landscapes, 1 modern block, and 1 abstract block. Arrange these in 7! ways, with 2! arrangements within the modern block and 3! arrangements of the abstracts. Finally, arrange the 4 distinct portraits in 4! ways and select 4 of the 9 available gaps using ##\binom {9}{4}##

Case 2
First, arrange the 8 units (5 landscapes, 2 modern paintings, and 1 abstract block) in 8! ways. Subtract the arrangements where the modern paintings are adjacent, 2! × 7!, leaving only arrangements where they are separated. Then account for the internal abstract arrangements, the 4 distinct portraits and their placement in the selected gaps.
 
An improved apprach of counting the possibilities
anuttarasammyak said:
After the idea the problem is reduced to 12 items, i.e.,
4 portraits,
5 landscapes,
1 abstract paintings group,
and 2 modern art pieces. Permutation in abstract painting group 3! should be maltiplied to the answer or the reduced problem.
Let us add one more item say J, meaning joint, to make a circle from a line with it. After all the things are done we remove J so that a circle goes back to a line.

Let (M) denote a modern piece and (X) one of its adjacent pieces.

Case of block XMMX the possibilities of portrait positions :##\ _9C_4##

Case of block XMXMX : ##\ _8C_4##

Case of blocks XMX and XMX : ## \frac{8}{2}\ _7C_4 ##

Total 336

We multiply
2! allocation of modern arts
4! that ot portrait
7! that of the others
and for the original problem
3! allocation of abstract paintings.
 
Last edited:
chwala said:
Case 1

Treat the two modern paintings as one block, leaving 7 units to arrange: 5 landscapes, 1 modern block, and 1 abstract block. Arrange these in 7! ways, with 2! arrangements within the modern block and 3! arrangements of the abstracts. Finally, arrange the 4 distinct portraits in 4! ways and select 4 of the 9 available gaps using (94)

Case 2
First, arrange the 8 units (5 landscapes, 2 modern paintings, and 1 abstract block) in 8! ways. Subtract the arrangements where the modern paintings are adjacent, 2! × 7!, leaving only arrangements where they are separated. Then account for the internal abstract arrangements, the 4 distinct portraits and their placement in the selected gaps.
@chwala I need some clarification to understand your method.
Let (M) denote a modern piece and (X) one of its adjacent pieces.
For case 1 Whether "MM" is at the ends or not does not matter in your counting ?
For case 2 "MXM" or "MXXM" where one or two items are between two Ms does not matter in your counting ? The cases that M is at the ends or next ends does not matter in your counting ?
 
Last edited:
anuttarasammyak said:
@chwala I need some clarification to understand your method.
Let (M) denote a modern piece and (X) one of its adjacent pieces.
For case 1 Whether "MM" is at the ends or not does not matter in your counting ?
For case 2 "MXM" or "MXXM" where one or two items are between two Ms does not matter in your counting ? The cases that M is at the ends or next ends does not matter in your counting ?
Yes, the positions of the modern paintings relative to the ends of the arrangement are automatically accounted for in my counting.

In Case 1, treating MM as a single block means that its position is anywhere in the arrangement,... including at either end, this is taken care of by the factorial arrangement- 7!


In Case 2, I use the complementary approach: count all possible arrangements and subtract those in which the two modern paintings are adjacent i.e case 1 . Consequently, arrangements such as MXM, MXXM and other possible separations are therefore included.
 
Last edited:
Thanks. I know that I need to find "9 available gaps" for portraits. Let me know where are gaps in seven units to arange, e.g,. in one of case 1 allocation ##LLM_bLLA_bL## or anyone else, where L:landscape piece, ##M_b##:modern piece block, ##A_b## abstract piece block.
 
Last edited:
anuttarasammyak said:
Thanks. I know that I need to find "9 available gaps" for portraits. Let me know where are gaps in seven units to arange, e.g,. in one of case 1 allocation ##LLM_bLLA_bL## or anyone else, where L:landscape piece, ##M_b##:modern piece block, ##A_b## abstract piece block.
Okay, in my understanding, the 7 portraits create 8 gaps. Of these, 2 gaps are unavailable because they are immediately before and after the modern block. This leaves 6 available gaps for the 4 portraits.

Note that we are distributing the 4 portraits among the 6 available gaps, rather than choosing 4 different gaps. For instance, the first gap could contain 3 portraits, another gap could contain 1, while the remaining gaps could be empty.

To count these possible distributions, we introduce separators to divide the 4 portraits into 6 groups. This is possible in ##\binom {9}{4}## ways.

Hope that helps! Cheers.
 
Last edited:
Let me confirm my understanding of "9 available gaps".

The example ##LLM_bLLA_bL## has six possible positions for P, portrait, denoted with *

$$*L*LM_bL*L*A_b*L*$$

We see five walls are separating *s. We have nine items in line consists of four Ps and five walls. Thus possible cases is ##\ _9C_4##. In the case of ##M_b## at the end., e.g.,

$$M_bL*L*L*L*A_b*L*$$

It keeps to have five effective walls. The leftest ##M_b## is not surmountable so we disregard it.

Case 2 e.g.,

$$*L*LMLML*A_b*L*$$
$$*LML*LML*A_b*L*$$
$$ML*L*L*L*A_b*LM$$

We have eight items in line consists of four Ps and four (effective) walls.
I think I have got it. Excellent. Thanks @chwala
 
Last edited: