Winning Strategy for the Magician and his ApprenticeEscape the dungeon, by deciphering the codes and navigating the rooms to find a way outThe juggling magicianThe Great Houdini's awesome card guessing trick (2)The Great Houdini's awesome card guessing trick (3)Vegas Street Magician Math TrickJack Sparrow and The quest for the missing Compass . Part 1Edward and the seven imps' GameFor the honor of HufflepuffErnie and the Disco UnicornReena and the doors. How many?
Interview not reimboursed if offer is made but not accepted
Which comes first? Multiple Imputation, Splitting into train/test, or Standardization/Normalization
What can plausibly explain many of my very long and low-tech bridges?
What risks are there when you clear your cookies instead of logging off?
Why only the fundamental frequency component is said to give useful power?
How does an ordinary object become radioactive?
Why doesn’t a normal window produce an apparent rainbow?
Was Jesus good at singing?
Can a user sell my software (MIT license) without modification?
How do I write "Show, Don't Tell" as a person with Asperger Syndrome?
Comparing and find out which feature has highest shape area in QGIS?
Is the term 'open source' a trademark?
Understanding the TeXlive release cycle: What is the meaning of a TeXlive release and is it ever 'finished'?
What can I, as a user, do about offensive reviews in App Store?
How to retract an idea already pitched to an employer?
Was the output of the C64 SID chip 8 bit sound?
What language is the software written in on the ISS?
How would a aircraft visually signal in distress?
Can an Aarakocra use a shield while flying?
Soft question: Examples where lack of mathematical rigour cause security breaches?
How to build suspense or so to establish and justify xenophobia of characters in the eyes of the reader?
Different pedals/effects for low strings/notes than high
How to officially communicate to a non-responsive colleague?
How do governments keep track of their issued currency?
Winning Strategy for the Magician and his Apprentice
Escape the dungeon, by deciphering the codes and navigating the rooms to find a way outThe juggling magicianThe Great Houdini's awesome card guessing trick (2)The Great Houdini's awesome card guessing trick (3)Vegas Street Magician Math TrickJack Sparrow and The quest for the missing Compass . Part 1Edward and the seven imps' GameFor the honor of HufflepuffErnie and the Disco UnicornReena and the doors. How many?
$begingroup$
There are $13$ upside-down opaque cups and $2$ balls, a magician and his apprentice and yourself. You decide under which cups to put the balls, and the objective of the magician is to find the two balls with only $4$ guesses.
The magic trick works as follows:
- The magician leaves the room.
- You put the two balls under two cups while the apprentice observes.
- The apprentice allows the magician to enter the room.
- The apprentice lifts one cup which doesn't hide a ball.
- The magician uses his $4$ guesses to reveal the hidden balls.
What strategy the magician and his apprentice can use such that the magician will always find the two balls?
I hope it wasn't asked before...
mathematics logical-deduction combinatorics
New contributor
$endgroup$
add a comment |
$begingroup$
There are $13$ upside-down opaque cups and $2$ balls, a magician and his apprentice and yourself. You decide under which cups to put the balls, and the objective of the magician is to find the two balls with only $4$ guesses.
The magic trick works as follows:
- The magician leaves the room.
- You put the two balls under two cups while the apprentice observes.
- The apprentice allows the magician to enter the room.
- The apprentice lifts one cup which doesn't hide a ball.
- The magician uses his $4$ guesses to reveal the hidden balls.
What strategy the magician and his apprentice can use such that the magician will always find the two balls?
I hope it wasn't asked before...
mathematics logical-deduction combinatorics
New contributor
$endgroup$
$begingroup$
How does the magician guess? Does he need 2 guesses to find both of the balls?
$endgroup$
– EKons
8 hours ago
add a comment |
$begingroup$
There are $13$ upside-down opaque cups and $2$ balls, a magician and his apprentice and yourself. You decide under which cups to put the balls, and the objective of the magician is to find the two balls with only $4$ guesses.
The magic trick works as follows:
- The magician leaves the room.
- You put the two balls under two cups while the apprentice observes.
- The apprentice allows the magician to enter the room.
- The apprentice lifts one cup which doesn't hide a ball.
- The magician uses his $4$ guesses to reveal the hidden balls.
What strategy the magician and his apprentice can use such that the magician will always find the two balls?
I hope it wasn't asked before...
mathematics logical-deduction combinatorics
New contributor
$endgroup$
There are $13$ upside-down opaque cups and $2$ balls, a magician and his apprentice and yourself. You decide under which cups to put the balls, and the objective of the magician is to find the two balls with only $4$ guesses.
The magic trick works as follows:
- The magician leaves the room.
- You put the two balls under two cups while the apprentice observes.
- The apprentice allows the magician to enter the room.
- The apprentice lifts one cup which doesn't hide a ball.
- The magician uses his $4$ guesses to reveal the hidden balls.
What strategy the magician and his apprentice can use such that the magician will always find the two balls?
I hope it wasn't asked before...
mathematics logical-deduction combinatorics
mathematics logical-deduction combinatorics
New contributor
New contributor
edited 8 hours ago
Omega Krypton
7,0832955
7,0832955
New contributor
asked 9 hours ago
Ben LevinBen Levin
512
512
New contributor
New contributor
$begingroup$
How does the magician guess? Does he need 2 guesses to find both of the balls?
$endgroup$
– EKons
8 hours ago
add a comment |
$begingroup$
How does the magician guess? Does he need 2 guesses to find both of the balls?
$endgroup$
– EKons
8 hours ago
$begingroup$
How does the magician guess? Does he need 2 guesses to find both of the balls?
$endgroup$
– EKons
8 hours ago
$begingroup$
How does the magician guess? Does he need 2 guesses to find both of the balls?
$endgroup$
– EKons
8 hours ago
add a comment |
3 Answers
3
active
oldest
votes
$begingroup$
Here is a simple strategy of how they could do it
Label the cups $0,1,2,ldots,12$ and the ball positions are $b_1$ and $b_2$.
The assistant picks cup $X$ such $b_1-X$ and $b_2-X$ are both in the set of residues $1,2,4,10$, modulo $13$.
Then the magician picks cups $X+1, X+2, X+4$ and $X+10$, modulo $13$
There will always be an $X$ that the assistant can pick such that magician finds both balls
Proof
Each non-zero residue modulo $13$ can be expressed as the difference between two numbers in the set $1,2,4,10$
$1 equiv 2-1, mod 13$
$2 equiv 4-2, mod 13$
$3 equiv 4-1, mod 13$
$4 equiv 1-10, mod 13$
$5 equiv 2-10, mod 13$
$6 equiv 10-4, mod 13$
$7 equiv 4-10, mod 13$
$8 equiv 10-2, mod 13$
$9 equiv 10-1, mod 13$
$10 equiv 1-4, mod 13$
$11 equiv 2-4, mod 13$
$12 equiv 1-2, mod 13$
Hence, the assistant can determine $b_2 - b_1 =x$, mod $13$, choose the equation above with $x$ on the left-hand side and pick $X$ such that $b_1$ and $b_2$ are at the appropriate relative positions on the right-hand side.
$endgroup$
$begingroup$
+1 for a solution that allows the magician to pick all four balls at once, rather than adapting the choice based on previous results.
$endgroup$
– user3294068
6 hours ago
add a comment |
$begingroup$
So, first things first.
Combinations of ball locations:
$(1+12)*12/2 = 78$
There are 13 cups and four guesses.
If the magician and the apprentice agreed on a code, this can be done.
For example, if the apperentice flipped cup number 1, it means the two balls are in two cups in cup 2,3,4, and 5.
Why this works:
Each combination of 4 cups cover $3+2+1=6$ guesses
$13*6=$
$78$, covering all combinations of ball locations.
Therefore, this strategy works.
$endgroup$
1
$begingroup$
The apprentice only has 11 choices.
$endgroup$
– JonMark Perry
8 hours ago
$begingroup$
@JonMarkPerry Looking at it from this perspective, the concept still works. Since the apprentice rules out one cup by lifting it, there are actually only 12!/(10!*2!) = 66 possibilities remaining for the magician to have to find. Since a "code" can correspond to 6 arrangements, and 11*6 = 66, this still works.
$endgroup$
– Michael Moschella
7 hours ago
$begingroup$
@JMP hexomino's answer is the solution to your question. we have the same concept, and his or her answer is the extension of mine, proving my point
$endgroup$
– Omega Krypton
7 hours ago
add a comment |
$begingroup$
Expanding on Omega Krypton's solution:
I decided to form my own "code" assigning 4 possible cups to each potential lifted cup, and you can indeed make a code that will always result in a correct guess.
The first number represents the apprentice's cup, the other 4 are the magician's guesses.
1 - 2,5,8,11
2 - 1,5,6,7
3 - 1,8,9,10
4 - 1,11,12,13
5 - 1,2,3,4
6 - 2,7,10,13
7 - 2,6,9,12
8 - 3,5,9,13
9 - 3,6,10,11
10 - 3,7,8,12
11 - 4,5,10,12
12 - 4,6,8,13
13 - 4,7,9,11
This is a rather ugly and hard to remember combination, though it just exists as a proof of concept, I just went through a greedy algorithm to assign 4 cups to each number such that you never have two overlapping. I'm sure there is a more elegant way to arrange them.
New contributor
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "559"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Ben Levin is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f84649%2fwinning-strategy-for-the-magician-and-his-apprentice%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Here is a simple strategy of how they could do it
Label the cups $0,1,2,ldots,12$ and the ball positions are $b_1$ and $b_2$.
The assistant picks cup $X$ such $b_1-X$ and $b_2-X$ are both in the set of residues $1,2,4,10$, modulo $13$.
Then the magician picks cups $X+1, X+2, X+4$ and $X+10$, modulo $13$
There will always be an $X$ that the assistant can pick such that magician finds both balls
Proof
Each non-zero residue modulo $13$ can be expressed as the difference between two numbers in the set $1,2,4,10$
$1 equiv 2-1, mod 13$
$2 equiv 4-2, mod 13$
$3 equiv 4-1, mod 13$
$4 equiv 1-10, mod 13$
$5 equiv 2-10, mod 13$
$6 equiv 10-4, mod 13$
$7 equiv 4-10, mod 13$
$8 equiv 10-2, mod 13$
$9 equiv 10-1, mod 13$
$10 equiv 1-4, mod 13$
$11 equiv 2-4, mod 13$
$12 equiv 1-2, mod 13$
Hence, the assistant can determine $b_2 - b_1 =x$, mod $13$, choose the equation above with $x$ on the left-hand side and pick $X$ such that $b_1$ and $b_2$ are at the appropriate relative positions on the right-hand side.
$endgroup$
$begingroup$
+1 for a solution that allows the magician to pick all four balls at once, rather than adapting the choice based on previous results.
$endgroup$
– user3294068
6 hours ago
add a comment |
$begingroup$
Here is a simple strategy of how they could do it
Label the cups $0,1,2,ldots,12$ and the ball positions are $b_1$ and $b_2$.
The assistant picks cup $X$ such $b_1-X$ and $b_2-X$ are both in the set of residues $1,2,4,10$, modulo $13$.
Then the magician picks cups $X+1, X+2, X+4$ and $X+10$, modulo $13$
There will always be an $X$ that the assistant can pick such that magician finds both balls
Proof
Each non-zero residue modulo $13$ can be expressed as the difference between two numbers in the set $1,2,4,10$
$1 equiv 2-1, mod 13$
$2 equiv 4-2, mod 13$
$3 equiv 4-1, mod 13$
$4 equiv 1-10, mod 13$
$5 equiv 2-10, mod 13$
$6 equiv 10-4, mod 13$
$7 equiv 4-10, mod 13$
$8 equiv 10-2, mod 13$
$9 equiv 10-1, mod 13$
$10 equiv 1-4, mod 13$
$11 equiv 2-4, mod 13$
$12 equiv 1-2, mod 13$
Hence, the assistant can determine $b_2 - b_1 =x$, mod $13$, choose the equation above with $x$ on the left-hand side and pick $X$ such that $b_1$ and $b_2$ are at the appropriate relative positions on the right-hand side.
$endgroup$
$begingroup$
+1 for a solution that allows the magician to pick all four balls at once, rather than adapting the choice based on previous results.
$endgroup$
– user3294068
6 hours ago
add a comment |
$begingroup$
Here is a simple strategy of how they could do it
Label the cups $0,1,2,ldots,12$ and the ball positions are $b_1$ and $b_2$.
The assistant picks cup $X$ such $b_1-X$ and $b_2-X$ are both in the set of residues $1,2,4,10$, modulo $13$.
Then the magician picks cups $X+1, X+2, X+4$ and $X+10$, modulo $13$
There will always be an $X$ that the assistant can pick such that magician finds both balls
Proof
Each non-zero residue modulo $13$ can be expressed as the difference between two numbers in the set $1,2,4,10$
$1 equiv 2-1, mod 13$
$2 equiv 4-2, mod 13$
$3 equiv 4-1, mod 13$
$4 equiv 1-10, mod 13$
$5 equiv 2-10, mod 13$
$6 equiv 10-4, mod 13$
$7 equiv 4-10, mod 13$
$8 equiv 10-2, mod 13$
$9 equiv 10-1, mod 13$
$10 equiv 1-4, mod 13$
$11 equiv 2-4, mod 13$
$12 equiv 1-2, mod 13$
Hence, the assistant can determine $b_2 - b_1 =x$, mod $13$, choose the equation above with $x$ on the left-hand side and pick $X$ such that $b_1$ and $b_2$ are at the appropriate relative positions on the right-hand side.
$endgroup$
Here is a simple strategy of how they could do it
Label the cups $0,1,2,ldots,12$ and the ball positions are $b_1$ and $b_2$.
The assistant picks cup $X$ such $b_1-X$ and $b_2-X$ are both in the set of residues $1,2,4,10$, modulo $13$.
Then the magician picks cups $X+1, X+2, X+4$ and $X+10$, modulo $13$
There will always be an $X$ that the assistant can pick such that magician finds both balls
Proof
Each non-zero residue modulo $13$ can be expressed as the difference between two numbers in the set $1,2,4,10$
$1 equiv 2-1, mod 13$
$2 equiv 4-2, mod 13$
$3 equiv 4-1, mod 13$
$4 equiv 1-10, mod 13$
$5 equiv 2-10, mod 13$
$6 equiv 10-4, mod 13$
$7 equiv 4-10, mod 13$
$8 equiv 10-2, mod 13$
$9 equiv 10-1, mod 13$
$10 equiv 1-4, mod 13$
$11 equiv 2-4, mod 13$
$12 equiv 1-2, mod 13$
Hence, the assistant can determine $b_2 - b_1 =x$, mod $13$, choose the equation above with $x$ on the left-hand side and pick $X$ such that $b_1$ and $b_2$ are at the appropriate relative positions on the right-hand side.
edited 8 hours ago
answered 8 hours ago
hexominohexomino
51.8k4152245
51.8k4152245
$begingroup$
+1 for a solution that allows the magician to pick all four balls at once, rather than adapting the choice based on previous results.
$endgroup$
– user3294068
6 hours ago
add a comment |
$begingroup$
+1 for a solution that allows the magician to pick all four balls at once, rather than adapting the choice based on previous results.
$endgroup$
– user3294068
6 hours ago
$begingroup$
+1 for a solution that allows the magician to pick all four balls at once, rather than adapting the choice based on previous results.
$endgroup$
– user3294068
6 hours ago
$begingroup$
+1 for a solution that allows the magician to pick all four balls at once, rather than adapting the choice based on previous results.
$endgroup$
– user3294068
6 hours ago
add a comment |
$begingroup$
So, first things first.
Combinations of ball locations:
$(1+12)*12/2 = 78$
There are 13 cups and four guesses.
If the magician and the apprentice agreed on a code, this can be done.
For example, if the apperentice flipped cup number 1, it means the two balls are in two cups in cup 2,3,4, and 5.
Why this works:
Each combination of 4 cups cover $3+2+1=6$ guesses
$13*6=$
$78$, covering all combinations of ball locations.
Therefore, this strategy works.
$endgroup$
1
$begingroup$
The apprentice only has 11 choices.
$endgroup$
– JonMark Perry
8 hours ago
$begingroup$
@JonMarkPerry Looking at it from this perspective, the concept still works. Since the apprentice rules out one cup by lifting it, there are actually only 12!/(10!*2!) = 66 possibilities remaining for the magician to have to find. Since a "code" can correspond to 6 arrangements, and 11*6 = 66, this still works.
$endgroup$
– Michael Moschella
7 hours ago
$begingroup$
@JMP hexomino's answer is the solution to your question. we have the same concept, and his or her answer is the extension of mine, proving my point
$endgroup$
– Omega Krypton
7 hours ago
add a comment |
$begingroup$
So, first things first.
Combinations of ball locations:
$(1+12)*12/2 = 78$
There are 13 cups and four guesses.
If the magician and the apprentice agreed on a code, this can be done.
For example, if the apperentice flipped cup number 1, it means the two balls are in two cups in cup 2,3,4, and 5.
Why this works:
Each combination of 4 cups cover $3+2+1=6$ guesses
$13*6=$
$78$, covering all combinations of ball locations.
Therefore, this strategy works.
$endgroup$
1
$begingroup$
The apprentice only has 11 choices.
$endgroup$
– JonMark Perry
8 hours ago
$begingroup$
@JonMarkPerry Looking at it from this perspective, the concept still works. Since the apprentice rules out one cup by lifting it, there are actually only 12!/(10!*2!) = 66 possibilities remaining for the magician to have to find. Since a "code" can correspond to 6 arrangements, and 11*6 = 66, this still works.
$endgroup$
– Michael Moschella
7 hours ago
$begingroup$
@JMP hexomino's answer is the solution to your question. we have the same concept, and his or her answer is the extension of mine, proving my point
$endgroup$
– Omega Krypton
7 hours ago
add a comment |
$begingroup$
So, first things first.
Combinations of ball locations:
$(1+12)*12/2 = 78$
There are 13 cups and four guesses.
If the magician and the apprentice agreed on a code, this can be done.
For example, if the apperentice flipped cup number 1, it means the two balls are in two cups in cup 2,3,4, and 5.
Why this works:
Each combination of 4 cups cover $3+2+1=6$ guesses
$13*6=$
$78$, covering all combinations of ball locations.
Therefore, this strategy works.
$endgroup$
So, first things first.
Combinations of ball locations:
$(1+12)*12/2 = 78$
There are 13 cups and four guesses.
If the magician and the apprentice agreed on a code, this can be done.
For example, if the apperentice flipped cup number 1, it means the two balls are in two cups in cup 2,3,4, and 5.
Why this works:
Each combination of 4 cups cover $3+2+1=6$ guesses
$13*6=$
$78$, covering all combinations of ball locations.
Therefore, this strategy works.
answered 8 hours ago
Omega KryptonOmega Krypton
7,0832955
7,0832955
1
$begingroup$
The apprentice only has 11 choices.
$endgroup$
– JonMark Perry
8 hours ago
$begingroup$
@JonMarkPerry Looking at it from this perspective, the concept still works. Since the apprentice rules out one cup by lifting it, there are actually only 12!/(10!*2!) = 66 possibilities remaining for the magician to have to find. Since a "code" can correspond to 6 arrangements, and 11*6 = 66, this still works.
$endgroup$
– Michael Moschella
7 hours ago
$begingroup$
@JMP hexomino's answer is the solution to your question. we have the same concept, and his or her answer is the extension of mine, proving my point
$endgroup$
– Omega Krypton
7 hours ago
add a comment |
1
$begingroup$
The apprentice only has 11 choices.
$endgroup$
– JonMark Perry
8 hours ago
$begingroup$
@JonMarkPerry Looking at it from this perspective, the concept still works. Since the apprentice rules out one cup by lifting it, there are actually only 12!/(10!*2!) = 66 possibilities remaining for the magician to have to find. Since a "code" can correspond to 6 arrangements, and 11*6 = 66, this still works.
$endgroup$
– Michael Moschella
7 hours ago
$begingroup$
@JMP hexomino's answer is the solution to your question. we have the same concept, and his or her answer is the extension of mine, proving my point
$endgroup$
– Omega Krypton
7 hours ago
1
1
$begingroup$
The apprentice only has 11 choices.
$endgroup$
– JonMark Perry
8 hours ago
$begingroup$
The apprentice only has 11 choices.
$endgroup$
– JonMark Perry
8 hours ago
$begingroup$
@JonMarkPerry Looking at it from this perspective, the concept still works. Since the apprentice rules out one cup by lifting it, there are actually only 12!/(10!*2!) = 66 possibilities remaining for the magician to have to find. Since a "code" can correspond to 6 arrangements, and 11*6 = 66, this still works.
$endgroup$
– Michael Moschella
7 hours ago
$begingroup$
@JonMarkPerry Looking at it from this perspective, the concept still works. Since the apprentice rules out one cup by lifting it, there are actually only 12!/(10!*2!) = 66 possibilities remaining for the magician to have to find. Since a "code" can correspond to 6 arrangements, and 11*6 = 66, this still works.
$endgroup$
– Michael Moschella
7 hours ago
$begingroup$
@JMP hexomino's answer is the solution to your question. we have the same concept, and his or her answer is the extension of mine, proving my point
$endgroup$
– Omega Krypton
7 hours ago
$begingroup$
@JMP hexomino's answer is the solution to your question. we have the same concept, and his or her answer is the extension of mine, proving my point
$endgroup$
– Omega Krypton
7 hours ago
add a comment |
$begingroup$
Expanding on Omega Krypton's solution:
I decided to form my own "code" assigning 4 possible cups to each potential lifted cup, and you can indeed make a code that will always result in a correct guess.
The first number represents the apprentice's cup, the other 4 are the magician's guesses.
1 - 2,5,8,11
2 - 1,5,6,7
3 - 1,8,9,10
4 - 1,11,12,13
5 - 1,2,3,4
6 - 2,7,10,13
7 - 2,6,9,12
8 - 3,5,9,13
9 - 3,6,10,11
10 - 3,7,8,12
11 - 4,5,10,12
12 - 4,6,8,13
13 - 4,7,9,11
This is a rather ugly and hard to remember combination, though it just exists as a proof of concept, I just went through a greedy algorithm to assign 4 cups to each number such that you never have two overlapping. I'm sure there is a more elegant way to arrange them.
New contributor
$endgroup$
add a comment |
$begingroup$
Expanding on Omega Krypton's solution:
I decided to form my own "code" assigning 4 possible cups to each potential lifted cup, and you can indeed make a code that will always result in a correct guess.
The first number represents the apprentice's cup, the other 4 are the magician's guesses.
1 - 2,5,8,11
2 - 1,5,6,7
3 - 1,8,9,10
4 - 1,11,12,13
5 - 1,2,3,4
6 - 2,7,10,13
7 - 2,6,9,12
8 - 3,5,9,13
9 - 3,6,10,11
10 - 3,7,8,12
11 - 4,5,10,12
12 - 4,6,8,13
13 - 4,7,9,11
This is a rather ugly and hard to remember combination, though it just exists as a proof of concept, I just went through a greedy algorithm to assign 4 cups to each number such that you never have two overlapping. I'm sure there is a more elegant way to arrange them.
New contributor
$endgroup$
add a comment |
$begingroup$
Expanding on Omega Krypton's solution:
I decided to form my own "code" assigning 4 possible cups to each potential lifted cup, and you can indeed make a code that will always result in a correct guess.
The first number represents the apprentice's cup, the other 4 are the magician's guesses.
1 - 2,5,8,11
2 - 1,5,6,7
3 - 1,8,9,10
4 - 1,11,12,13
5 - 1,2,3,4
6 - 2,7,10,13
7 - 2,6,9,12
8 - 3,5,9,13
9 - 3,6,10,11
10 - 3,7,8,12
11 - 4,5,10,12
12 - 4,6,8,13
13 - 4,7,9,11
This is a rather ugly and hard to remember combination, though it just exists as a proof of concept, I just went through a greedy algorithm to assign 4 cups to each number such that you never have two overlapping. I'm sure there is a more elegant way to arrange them.
New contributor
$endgroup$
Expanding on Omega Krypton's solution:
I decided to form my own "code" assigning 4 possible cups to each potential lifted cup, and you can indeed make a code that will always result in a correct guess.
The first number represents the apprentice's cup, the other 4 are the magician's guesses.
1 - 2,5,8,11
2 - 1,5,6,7
3 - 1,8,9,10
4 - 1,11,12,13
5 - 1,2,3,4
6 - 2,7,10,13
7 - 2,6,9,12
8 - 3,5,9,13
9 - 3,6,10,11
10 - 3,7,8,12
11 - 4,5,10,12
12 - 4,6,8,13
13 - 4,7,9,11
This is a rather ugly and hard to remember combination, though it just exists as a proof of concept, I just went through a greedy algorithm to assign 4 cups to each number such that you never have two overlapping. I'm sure there is a more elegant way to arrange them.
New contributor
edited 7 hours ago
New contributor
answered 7 hours ago
Michael MoschellaMichael Moschella
613
613
New contributor
New contributor
add a comment |
add a comment |
Ben Levin is a new contributor. Be nice, and check out our Code of Conduct.
Ben Levin is a new contributor. Be nice, and check out our Code of Conduct.
Ben Levin is a new contributor. Be nice, and check out our Code of Conduct.
Ben Levin is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Puzzling Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f84649%2fwinning-strategy-for-the-magician-and-his-apprentice%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
How does the magician guess? Does he need 2 guesses to find both of the balls?
$endgroup$
– EKons
8 hours ago