On the Subject of Extended Button Order

Haven't I seen this before?.

This module consists of 10 buttons labelled 0-9 and two LEDs at the top telling you what stage you are on. There are two stages to solving this module. To solve the module, press the buttons in the correct order.

Step 1

Start by taking the sum of the serial number digits. Then square this number and multiply by the last digit of the serial number.

Then enter this number into the number pad with the digits on the number pad being in reading order starting at zero (1302 would be second button in reading order, then the fourth, then the first and finally the third). The module will strike as soon as you press a wrong button. When you strike, your inputted digits will reset.

Remember the labels on the buttons in this stage.

Step 2

Once you have entered the digits correctly, the numbers will change. Take the numbers on the buttons in reading order from the previous stage and the numbers on the buttons in reading order for this stage. For each button, take the label of the button in the previous stage and add it to the label of the button in this stage, then take the least significant digit of this sum. Do this for every subsequent digit. cycle the new list of number right by an amount determined by the table below, using the position of 0 in the current stage. (Shifting 0123456789 by 1 would result in 9012345678). Put the location of the digit 0 on the module right now in the top row of the table. (The top right would be 1. Going in reading order). After this, enter this number into the module by pressing the buttons with the labels that match the number. The green lights will always show in reading order. The module will only submit when you enter all 10 digits and upon striking, you will reset back to step 1.

Location of 0 1 2 3 4 5 6 7 8 9 10
Amount to shift by 7 4 1 8 9 6 2 5 3 2