## On the Subject of Access Codes

Defuse this bomb for only £29.99! What a steal!

*IMPORTANT: THIS MODULE MUST BE SOLVED BEFORE ANY OTHER (with a few exceptions such as other Access Codes). FAILING TO DO SO WILL RESULT IN A STRIKE.*

This module presents six buttons labelled with letters A-F, a display, a reset button and a submit button. To solve this module, you must enter in a six letter long code. Submitting an incorrect code will cause a strike.

First, convert each character of the serial number from base 36 to decimal. Then:

#### If the bomb has any modded ports:

For each modded port, if it's a:

- -Composite video, add 1 to each number in the converted serial number in the converted serial number.
- -VGA, add 2 to each number in the converted serial number in the converted serial number.
- -Component video, add 3 to each number in the converted serial number in the converted serial number.
- -AC, add 4 to each number in the converted serial number in the converted serial number.
- -PCMCIA, add 5 to each number in the converted serial number in the converted serial number.
- -USB, add 6 to each number in the converted serial number in the converted serial number.
- -HDMI, add 7 to each number in the converted serial number in the converted serial number.

Modulo each number by 6 and add 1. Then, convert these to letters (where A = 1, B = 2, et cetera). This is your final code.

#### Otherwise, if the voltage of the bomb is known:

Follow the rules below for the voltage of the bomb:

- 1 - Add the sum of the numbers to each number in the converted serial number.
- 1.5 - Add the sum of the odd numbers to each number in the converted serial number.
- 2 - Add the sum of the even numbers to each number in the converted serial number.
- 2.5 - Add the sum of the odd-positioned numbers to each number in the converted serial number.
- 3 - Add the sum of the even-positioned numbers to each number in the converted serial number.
- 3.5 - Add the sum of the first three numbers to each number in the converted serial number.
- 4 - Add the sum of the last three numbers to each number in the converted serial number.
- 4.5 - Add the sum of the first and last numbers to each number in the converted serial number.
- 5 - Add the sum of the second and fifth numbers to each number in the converted serial number.
- 5.5 - Add the sum of the third and fourth numbers to each number in the converted serial number.
- 6 - Add the sum of the numbers that are less than 13 to each number in the converted serial number.