On the Subject of Parity

Back in the old days there were only two types of modules: decent ones and decent ones... wait hold on!

On the module will be a square display showing a letter and a digit, two switches with LEDs connected to them, and a button to the right.

Apart from the letter-number pair shown on the module, each LED has a letter-number pair associated with it, obtained from the serial number. The third and fourth characters are associated with the left LED, while the fifth and sixth characters are associated with the right LED.

Each of these letters has a sequence associated with it found in the table below. These sequences can be compared with each other. If you have to swap elements in the sequence to get to the other an even number of times, they share parity. If it takes an odd number of swaps however, they do not.

ABCDEFGHIJKL
341234213124214314324321243121341342421324131423
MNPQRSTUVWXZ
231412344132324112434123423132141324431231422341

For both LEDs, note down the following:

  • Whether the sequence of its letter shares parity with the sequence of the displayed letter.
  • Whether its number shares odd-even parity with the displayed number.

The states of the LEDs are determined as follows:

  • The left LED must be on if these conditions are of the same parity (both apply or neither does).
  • The right LED must be on if these conditions are of opposite parities (only one applies).

Set the LEDs to their correct states using the switches and submit by pressing the button on the right. If this is done correctly, the module will solve. Otherwise, a strike will be incurred, and the display will change.