## On the Subject of A>N<D

I see fancy names are in the vogue now.

On the module there are three screens and a keypad with numbers from 0–9. On the middle screen there are two 5-digit binary numbers. On the top-left screen there will be a symbol and on the top-right screen there will be a stage number.

This module can only be solved if all other non-ignored modules are solved. With each solved module you’ll have to note down the information displayed on the module and work out the correct answer to submit at the end.

### Solving module:

The two binary numbers are considered as an input. Take each bit of the displayed inputs maintaining their order (top is the 1st, bottom is the last) and perform the correct logic gate on it to get the new binary number. The symbol displayed on the top screen shows the logic gate that must be used. **However**, if the displayed symbol is ¬ (NOT) invert every bit in the top binary number (1 becomes 0 and vice versa) then convert it to decimal as normal.

For example if the showed binary numbers are 10101 and 00110 and the gate is OR then the new binary number should be 10111.

Then convert the worked out binary number back into base 10. If the stage number is even, take the number and modulo it by 10. Otherwise if it’s odd then take the digital root of the number. This is your answer for this stage.

If you strike, module will display the symbol and binary numbers for this stage. Press the correct digit to continue the submission.