Home > Riddles > The binary bells

The binary bells

Visual trapsLevel 4 · Advanced · ●●●●○

Four bells A, B, C, D begin silently.
There are four strings and each one changes (turns on/off) these bells:

  • X changes A and B,
  • And change B and C,
  • Z changes A, C and D,
  • W changes C and D.

Each rope can be pulled at most once.
In the end, only A and D are playing.
What ropes were pulled?

Hints

Show hints
  1. We modeled each rope with a binary variable (1 = pulled, 0 = not).
  2. Only solution: (X,Y,Z,W)=(1,1,0,1).
  3. Module 2 equations: $\begin{aligned}A&=X+Z=1,\\ B&=X+Y=0,\\ C&=Y+Z+W=0,\\ D&=Z+W=1.\end{aligned}$

Solution

Show full solution

Back to problem
Answer: X, Y and W (and not Z) were rolled.
We model each string with binary variable ($1$ = pulled, $0$ = not).
Final objective: $A=1,\ B=0,\ C=0,\ D=1$.
Module 2 equations:

$$ \begin{aligned} A&=X+Z=1,\\ B&=X+Y=0,\\ C&=Y+Z+W=0,\\ D&=Z+W=1. \end{aligned} $$

From $D$: $W=1+Z$.
In $C$: $Y+Z+(1+Z)=0\Rightarrow Y+1=0\Rightarrow Y=1$.
In $B$: $X+1=0\Rightarrow X=1$.
In $A$: $1+Z=1\Rightarrow Z=0$.
So $W=1$.
Only solution:

$$ (X,Y,Z,W)=(1,1,0,1). $$


Related riddles

Keep practicing

If you enjoyed this one, try more pure-logic riddles, explore this theme, browse the full archive, or read the riddle-solving guide.

← Previous: The height shelf · Next: Delivery men with a false lead →