On the Subject of Lightmare
Who’s Grandson is this, and how are they so good at the saxophone?
This module consists of 7 light bulbs and a button in the center which possesses 4 different properties. The light bulbs are constantly flashing four colours from a standard RGB (RGB are primary, CMY are secondary, KW are neither), with a black flash to signify the end of the sequence. Note the module signifies Black with a Gray flash.
The lightbulbs are positioned in a heptagon, with the top being position 1 and the others labeled in clockwise order.
While there are wires connecting all of the bulbs to the button, only 2 will actually be connected at each time, one constant and one changing. To figure out what these bulbs are, convert the serial number from base 36 to base 7, and take the last 6 digits. Any 0s are replaced with 7s. In the case of duplicates, if the last digit of the serial number in base 36 is odd, add 1 to all but the rightmost duplicate, subtracting 7 from any number larger than 7, otherwise do it from the left. Repeat until there are 6 unique numbers. The missing number is the bulb that is always connected to the button.
Now modify the remaining sequence according to the table below.
| If... | Then |
|---|---|
| Any bulb’s wire crosses another wire. | Swap the first two digits. |
| The button’s display shares a letter with the serial number. | Split the sequence into 3 pairs and reverse each of them. |
| The button’s pattern is checkerboard and blue. | Cycle the sequence to the right equal to the first base-36 digit of the serial number. |
| The button is a square and is not a secondary colour (CMY). | Cycle the sequence to the left equal to the sixth base-36 digit of the serial number. |
| The serial number or button (but not both) have a letter or number in common with L1GHTM4R3. | Switch the first and last digits. |
| The button’s pattern is cube net and shares a colour with the missing numbered bulb. | Reverse the sequence. |
| None of the above conditions apply. | Split the sequence into triplets and cycle the first triplet 1 to the right and the second triplet one to to the left. |