Wednesday, March 25, 2015

Ring around the Rosie

The story so far: we have a lightpost, with fifteen lights, and the input light is the exclusive or of the fifteenth and ninth light. What is the cycle length?

In order to find the answer, we will first observe that we can map our lightpost, and the successive states, not as fifteen disjoint lights, but as a sliding window overtop of a single pattern of lights:

Under this mapping, each pattern of lights contributes a single light to the larger sequence, and conversely, each set of fifteen contiguous lights forms a single, unique pattern.

Having made this observation, we can represent the rule that produces a new pattern from an existing one as follows. If we assign each light in the sequence a number starting from some arbitrary starting light, and we represent Lx as the state of light N, then we have that Lx = Lx-9 ⊕ Lx-15. Here, ⊕ represents the 'exclusive or' operation.

We can go further, and apply this definition recursively. That is, Lx-9 = Lx-18 ⊕ Lx-24, so Lx = Lx-15 ⊕ Lx-18 ⊕ Lx-24. We also have Lx-15 = Lx-24 ⊕ Lx-30, and so learn that Lx = Lx-18 ⊕ Lx-24 ⊕ Lx-24 ⊕ Lx-30.

This is where things start to get interesting. The exclusive or operation has two identities that will be key to our proof: for a variable X, it is the case that X ⊕ X = False, and X ⊕ False = X. In our derivation above, Lx-24 appears twice. We can apply these two identities to conclude that Lx = Lx-18 ⊕ Lx-30.

Let's see what happens if we turn the crank of this algebraic jack-in-the-box:

Lx = Lx-9 ⊕ Lx-15
Lx = Lx-15 ⊕ Lx-18 ⊕ Lx-24
Lx = Lx-18Lx-24 ⊕ Lx-24 ⊕ Lx-30
Lx = Lx-18 ⊕ Lx-30
Lx = Lx-27 ⊕ Lx-30 ⊕ Lx-33
Lx = Lx-30 ⊕ Lx-33 ⊕ Lx-36 ⊕ Lx-42
Lx = Lx-33 ⊕ Lx-36 ⊕ Lx-39 ⊕ Lx-42 ⊕ Lx-45
Lx = Lx-36 ⊕ Lx-39Lx-42 ⊕ Lx-42 ⊕ Lx-45 ⊕ Lx-48
Lx = Lx-36 ⊕ Lx-39 ⊕ Lx-45 ⊕ Lx-48
Lx = Lx-39Lx-45 ⊕ Lx-45 ⊕ Lx-48 ⊕ Lx-51
Lx = Lx-39 ⊕ Lx-48 ⊕ Lx-51
Lx = Lx-48 ⊕ Lx-48 ⊕ Lx-51 ⊕ Lx-54
Lx = Lx-51 ⊕ Lx-54
Lx = Lx-54 ⊕ Lx-60 ⊕ Lx-66
Lx = Lx-60 ⊕ Lx-63 ⊕ Lx-66 ⊕ Lx-69
Lx = Lx-63 ⊕ Lx-66Lx-69 ⊕ Lx-69 ⊕ Lx-75
Lx = Lx-63 ⊕ Lx-66 ⊕ Lx-75
Lx = Lx-66 ⊕ Lx-72 ⊕ Lx-75 ⊕ Lx-78
Lx = Lx-72Lx-75 ⊕ Lx-75 ⊕ Lx-78 ⊕ Lx-81
Lx = Lx-72 ⊕ Lx-78 ⊕ Lx-81
Lx = Lx-78Lx-81 ⊕ Lx-81 ⊕ Lx-87
Lx = Lx-78 ⊕ Lx-87
Lx = Lx-87 ⊕ Lx-87 ⊕ Lx-93
Lx = Lx-93

The jack has popped! This demonstrates that for each cycle in our lightpost, each light is the same as the light 93 indices prior. From this we conclude that the length of each cycle in the lightpost is 93. There is only one problem with this result: it is impossible, and therefore wrong. Your questions for next time:

  • Why it is impossibe for every cycle of this lightpost to be 93 sequences in length?
  • Why does this impossibility not pose a problem for the proof that we have just derived?

No comments:

Post a Comment