On the Subject of Reverse Polish Notation
5 5+3 3+*9+
On the module there is a big screen in the middle and a small screen below it, three LEDs indicating stage number, keypad with numbers 0-9, submit and clear button as well as a decimal button.
To solve the module, calculate the answer of the displayed equation. This equation is written in different notation. This notation is called Reverse Polish Notation (postfix notation). When you have your answer, take the absolute value of it, modulo it by 1'000'000, round it to 3 places after the decimal point (0.5 rounds up to 1), input it using the keypad and then hit the OK button. You can clear your input using the clear button. Complete all 3 stages to solve the module. When an incorrect answer is entered, you’ll get a strike, but the module won't reset. NOTE: If you have to divide by 0 then let the answer be 0.
Every number in the equation can be replaced with a letter. Using the rules below for the correct letters obtain the number and replace the correct letter in the equation with it. If the letter returns a 0, add 1 to it.
If the letter is:
A - the product of the number of batteries and the number of modules on the bomb excluding needies.
B - the square of the difference between the number of ports and the number of indicators.
C - number of battery holders plus 2, divided by the last digit of serial number. Drop any remainders.
D - sum of the non-encoded numbers in the current stage plus 10.
E - serial ports plus parallel ports. If the current stage is 1 or 3 multiply by the third character of the serial number, otherwise add the third character of the serial number instead.
F - The nth term of the triangle number sequence where n is equal to the number of port plates plus PS2 and RJ ports mod 9.