5

A magician places n coins on a table and walks down off the stage. A volunteer comes, turns over whichever coins he wishes, selects one coin and whispers its number to the apprentice. Then the apprentice turns over one coin aiming to assist the magician to know the selected coin.

For which values of n the magic will always succeed? What if the apprentice may turn at most one coin?

For the first question: (For which values of n the magic will always succeed?)

Answer: We have $n$ coins which can be in $2$ different states - hands or tails, thus there's $2^n$ coin states.

Let's make the coin's number as its binary representation with number of bits that is equal to the chosen $n$.

The assistant will do the XOR operation with the coins that their heads match the coin that has selected. This will be achieved by using the bitwise XOR of current state with the coin that was selected (by the volunteer) and flipping the coin with that number.

To conclude, $n$ has to be a factor of $2^n$, meaning that $n$ has to be a power of $2$. Flipping the $0$ coin is free, so the assistant can flip a coin whenever he wants.

I thought also about approach with representing the $2^n$ states with a hypercube, we'll give each vertex a color to represent one of the $n$ named coins. There must be one of each color adjacent to any starting position, so there are equal number of each color. Thus, as stated above $n$ must be a factor of $2^n$, thus $n$ must be a power of $2$.

I'm interested to know for which values of $n$ the magic will succeed when the apprentice may turn at most one coin.

Alex Ravsky
  • 90,434
  • 1
    What question are you answering in the section labelled "Answer"? You seem to be assuming the apprentice can flip over as many coins as they like, but in the first paragraph you say they can only flip one. – Jack M Jul 17 '19 at 10:00
  • 1
    @JackM I've answered the first question - the apprentice for sure turns over one coin aiming to assist the magician, for which $n$ the magic will succeed. In the second question, the apprenatice may or may not turn over the coin. he doesn't have to. for which $n$ will the magic succeed? – Ilan Aizelman WS Jul 17 '19 at 10:42
  • 1
    See also here, and here for some disscussion and links. – Jaap Scherphuis Jul 17 '19 at 10:54
  • 1
    @IlanAizelmanWS To be honest, I found this question hard to read. To make sure I understand, a volunteer flips over a coin and then selects another coin? And then the volunteer tells the number of the selected coin to the apprentice? Could the selected coin be the same as the flipped coin? – mathworker21 Jul 17 '19 at 11:59
  • Can someone please rewrite this whole question? I can't read through the 'answer' part at all. – mathworker21 Jul 17 '19 at 15:13
  • @mathworker21 Edited – Ilan Aizelman WS Jul 17 '19 at 16:56
  • @IlanAizelmanWS I cannot understand the 'answer' part at all. I suggest you put the time in to rewriting everything to make it very clear exactly what the setup is and what the answer is. I'm not able to help you unless you do, sorry. – mathworker21 Jul 17 '19 at 17:03
  • As you rewrite, I recommend against assigning a specific gender to any hypothetical person such as the audience volunteer. Implicit bias already causes our brains to default to male in so many arenas (including both mathematics and professional magic), and needlessly using male pronouns reinforces that bias in readers. – Greg Martin Jul 17 '19 at 17:09
  • @GregMartin Do you think it could be because most mathematicians are male rather than "implicit bias"? – mathworker21 Jul 17 '19 at 20:21

1 Answers1

3

representing the $2^n$ states with a hypercube, we'll give each vertex a color to represent one of the $n$ named coins. There must be one of each color adjacent to any starting position.

This means that each monochromatic set is a dominating set for the hypercube graph $Q_n$. The domatic number $d(G)$ of a graph $G$ is the maximum number of elements in a partition of the set of vertices of $G$ into dominating sets. Thus the question is whether $d(Q_n)\ge n$. According to [JBM], Zelinka in [Z] proved that if $n=2^k$ for a positive integer $k$ then graphs $Q_n$ and $Q_{n-1}$ both have the domatic number $n$, so in this case the answer to your question is positive. On the other hand, for each graph $G$ we have $d(G)\le |G|/\gamma(G)$, where $|G|$ is the number of vertices in $G$ and $\gamma(G)$ is the number of vertices in a smallest dominating set for $G$. According to [KM] “Unfortunately, the exact domination number is known only for small dimensional hypercubes and two infinite families: $\gamma(Q_3) = 2$, $\gamma(Q_4) = 4$, $\gamma(Q_5) = 7$, $\gamma(Q_6) = 12$, and $\gamma(Q_n) = 2^{n−k}$ for $n = 2^k − 1$ or $n = 2^k$, see [HL]. In general, $\gamma(Q_n) \le 2^{n−3}$ for $n\ge 7$ [AK]”. Thus we have $d(Q_5)\le 4$ and $d(Q_6)\le 5$, so for these values of $n$ the answer to your question is negative.

References

[AK] S. Arumugam, R. Kala, Domination parameters of hypercubes, J. Indian Math. Soc. (N.S.) 65 (1998), 31–38.

[HHW] Frank Harary, John P. Hayes, Horng-Jyh Wu, A survey of the theory of hypercube graphs, Comput. Math. Applic. 15:4 (1988), 277-289.

[HL] F. Harary, M. Livingston, Independent domination in hypercubes, Appl. Math. Lett. 6 (1993), 27–28.

[JBM] T.N.Janakiraman, M.Bhanumathi, S.Muthammai, Domination Parameters Of Hypercubes, International Journal of Engineering Science, Advanced Computing and Bio-Technology, 1:1 (January -March 2010), 19–28.

[KM] Sandi Klavžar, Meijie Ma, The domination number of exchanged hypercubes.

[Z] B.Zelinka, Domination numbers of cube graphs, Math Slovaca, 32:2 (1982), 117–1. (unfortunalety, I failed to find this paper).

Alex Ravsky
  • 90,434