On the Subject of N&Ns

There’s some M’s in this house! There’s some M’s in this house!

If the status light is not in the top-left, you are looking at a different module.

Press the correct button in each of the 5 stages to solve the module. Pressing any button incorrectly will incur a strike and reset the module back to stage 1. The stage the module is currently on can be determined with which button is colored cyan.

Stage 1:

For each number k in the set of numbers 1 to 5, count how many of the kth characters of each button are Ns. Press the button that is the position (left to right) of the value of k for which there is a unique number of Ns.

Stage 2:

Treat N as a 0 and M as a 1. Each button will contain a binary number that can be converted to a letter using A0Z25. These letters spell out a scrambled word from the following word bank, with one extra. Press the button with the extra letter.

ATOMBIKECELLDASHEGADFONTGYROHIKEICEDJACKKINDLONGMOON
NEWTOXENPACKQUIZRUSTSTANTHAWUSERVAPEWESTXYSTYULEZINC

Stage 3:

In this stage, each button will have a unique color.

Take the serial number, but ignore one character, based on the color not present:

  • Red: 1st character
  • Green: 2nd character
  • Orange: 3rd character
  • Blue: 4th character
  • Yellow: 5th character
  • Brown: 6th character

Treat the remaining characters as base-36. If the first character is even, the first bit of your “target sequence” is an M, and an N if it is odd, and so on. If all bits are identical, invert the middle one.

Treat the set of all letters on the module as a 5×5 torus (it wraps around in all directions), with the rightmost button giving the top row and the leftmost the bottom row.

Use the serial number character that was ignored to get a direction:

B48FTUMJY6SHA
IQC3VOscar →O751G
0WRX9LKZE2NPD

The target sequence can be found somewhere within this torus, written in the direction obtained. Press the button that contains the first letter of the target sequence.

Stage 4:

Read the Venn diagram using the only button that starts with an M and press the button given from the resulting instruction.

> R 2 2s B 4 3s 1s G 1 Any 5 N O 3 Y
Button has a primary color (red, blue, green)
Button has been pressed in a previous stage
Button has an even number of Ns
Button position (left to right) is odd
CharacterButton to press
#That button
#sThe button pressed in that stage
>The button with the highest non-tied amount of Ns
AnyAny button
RAny red button
GAny green button
OAny orange button
BAny blue button
YAny yellow button
NAny brown button

Stage 5:

If every button pressed so far was different, press the only button that hasn’t been pressed.

Otherwise, take the number of times each button has been pressed from left to right and use those numbers to form a number in base-5. Convert this to binary and take the 5 most significant bits, appending 0’s to the left until it’s 5 bits long if necessary. With M being 0 and N being 1, press the button whose label matches these bits.