On the Subject of The Sequencyclopedia

The only thing worse than an encyclopedia? One on a bomb.

This module requires an internet connection in order to utilize the On-Line Encyclopedia of Integer Sequences, a catalogue of sequences of numbers. If there is no internet connection, the module will resort to A000004, a sequence of entirely 0s. Enter 0 to solve the module.

On the module, there are ten LEDs, all of them light up a certain color. There is also a screen that will display something in the form of “A[6-digit-number]”. You need to find this sequence in the database (Example: The Zero Sequence).

The LEDs light up to represent a binary number. The red LEDs are the 0s, and the non-red LEDs are the 1s. The most significant digit is the leftmost LED. Using the sequence of LED colors, convert the binary number into decimal (This number will be denoted by the letter A).

Also, gather the number of numbers listed on the sequence that was used by the module (This number will be denoted by the letter B). Using the previous number and the converted binary number, locate the number that must be submitted by using the calculation below. The calculation is based on the non-red LED color that was used.

GREEN The position of the number is in the Nth position, where N is equal to (A % B) + 1
BLUE The position of the number is in the Nth position, where N is equal to B - (A % B)

After locating the number on the database, type the exact number on the module using the keypad below the displays. If the number gathered is negative, press the topmost display to type a negative sign [This must be pressed first before typing the numbers. Pressing it later will cause it to not work]. You can not erase the numbers already typed, so be careful with sending and typing the number.

To submit the number typed on the module, press the center display. If the numbers do not match, the module denies the answer and strikes you. The module also resets after striking. If the numbers match, the module accepts the answer. This will solve the module.