Changing minds

Suppose you have created a machine that allows you to change minds with whomever you desire, but an exchange between a particular pair of minds is only allowed once. Suppose now that a set of 17 people have switched minds once. What is the least number of new bodies necessary for everyone to switch back to their original bodies?

OBS: This question is easy because it is only a tribute to an episode of Futurama .

Image credit: 20th century Fox, Futurama


The answer is 2.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Lucas Tell Marchi
Jan 12, 2015

First, let π \pi be some k k -cycle on [ n ] = { 1 n } [n] = \left \{ 1 \cdots n \right \} . Then write in Cauchy's two-line notation:

π = ( 1 2 k k + 1 n 2 3 1 k + 1 n ) \pi = \begin{pmatrix} 1 \;\;\; 2 \;\;\; \cdots \;\;\; k \;\;\; k+1 \;\;\; n \\ 2 \;\;\; 3 \;\;\; \cdots \;\;\; 1 \;\;\; k+1 \;\;\; n \end{pmatrix}

Now let ( a , b ) \wp (a,b) be the operation that makes the transposition of a a and b b . For our purposes, π \pi is generated by distinct switches on [ n ] [n] . Introduce then two new elements { x , y } \left \{x, y\right \} and then

π = ( 1 2 k k + 1 n x y 2 3 1 k + 1 n x y ) \pi* = \begin{pmatrix} 1 \;\;\; 2 \;\;\; \cdots \;\;\; k \;\;\; k+1 \;\;\; \cdots \;\;\; n \;\;\; x \;\;\; y \\ 2 \;\;\; 3 \;\;\; \cdots \;\;\; 1 \;\;\; k+1 \;\;\; \cdots \;\;\; n \;\;\; x \;\;\; y \end{pmatrix}

For any i = 1 , , k i = 1, \cdots, k let φ \varphi be the series of switches

φ = ( ( x , 1 ) ( x , 2 ) ( x , i ) ) ( ( y , i + 1 ) ( y , i + 2 ) ( y , k ) ) ( ( x , i + 1 ) ( y , 1 ) ) \varphi = (\wp(x,1)\wp(x,2)\cdots\wp(x,i))(\wp(y,i+1)\wp(y,i+2)\cdots\wp(y,k))(\wp(x,i+1)\wp(y,1))

Note that each switch exchanges one element of [ n ] [n] with one of { x , y } \left \{x, y\right \} , so they are all distinct from the switches within [ n ] [n] that generated π \pi and also from ( x , y ) \wp(x,y) . Verification leads us to

π φ = ( 1 2 n x y 1 2 n y x ) \pi*\varphi = \begin{pmatrix} 1\;\;\; 2 \;\;\; \cdots \;\;\; n \;\;\; x \;\;\; y \\ 1 \;\;\; 2 \;\;\; \cdots \;\;\; n \;\;\; y \;\;\; x \end{pmatrix}

i.e., φ \varphi inverts the k k -cycle and leaves { x , y } \left \{x, y\right \} inverted, without switching { x , y } \left \{x, y\right \} not even once. Then we can invert { x , y } \left \{x, y\right \} , as desired.

This proves that two new elements (or bodies) are enough to bring everyone back to normal. Proving that they are the least number is a matter of trying only one new body.

This is known as Keeler's Theorem .

I think that we need no additional body to get back to original position. We can arrange people in subsets of four people - two pairs of switched pairs.

Observe 4 bodies B1, B2 , B3, B4 originally with minds M1, M2, M3, M4, respectively. Denote the original state (B1,M1), (B2,M2), (B3,M3), (B4,M4). After first switch B1-B2 and B3-B4 we have two switched pairs:

(B1,M2), (B2,M1), (B3,M4), (B4,M3).

To restore the original state make next two steps:

  1. Switch between B1_B3 and B2-B4 and get (B1,M4), (B2,M3), (B3,M2), (B4,M1).

  2. Switch between B1-B4 and B2-B3 and get (B1,M1), (B2,M2), (B3,M3), (B4,M4).

So, the correct answer is 0.

Bogdan Kejžar - 6 years, 4 months ago

Log in to reply

Dear lord. I'm so sorry. I was unfortunate to choose a multiple of 4. I'll change that right now. Thank you so much.

Lucas Tell Marchi - 6 years, 4 months ago
Bilel Mabrouk
Jan 12, 2015

let's take a simple case where we switch a single pair of bodies (X,Y) suppose we have already switched X and Y , now we can't do that switch again so we need another body

let A be that new body , we switch (X,A) {Step 1} and switch (A,Y) {Step 2} , so now we know that Y has its mind back

and we know that A now has X's mind but we can't switch (X,A) again so we need another body B

now we switch (A,B) {Step 3} , B now has X's mind , now we switch (B,X) {Step 4} and X has its mind back

we can use that same process no matter X , no matter Y , which mean A and B are sufficient to do all the switches so that each pair get their minds back.

There are many things wrong with this solution.

  • You swap A-B for many number of times. Consider W,X,Y,Z, where initially W-X are swapped and Y-Z are swapped; you will swap A-B twice.
  • You only described how to swap X-Y. What if X's mind is in Y's body, but Y's mind is somewhere else, say in Z? Note that simply swapping X-Y as described above, then swapping Y-Z is not permitted, since this uses A-Y twice.

Ivan Koswara - 6 years, 5 months ago
Piyush Kumar
Jan 12, 2015

The solution is quite simple. Suppose we take another person A and make him exchange his mind with 1 of the 20 people . Now person A will exchange his acquired mind with a second person whose mind he took from A. Further he now gives the acquired mind to another person whose mind he took earlier and this cycle goes on till the second last person gets his mind back.(The first person still has the mind of person A) So now we need another person B so that it could first exchange his mind with A and then give the acquired mind to the first person

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...