Here are the instructions again:
- Key in the first three digits of your phone number (NOT the Area code...)
- Multiply by 80
- Add 1
- Multiply by 250
- Add to this the last 4 digits of your phone number
- Add to this the last 4 digits of your phone number again.
- Subtract 250
- Divide number by 2
Let your phone number be "ABC-DEFG"
.
Let x
be the number we have so far.
x = 100*A + 10*B + C
x = 8000*A + 800*B + 80*C
x = 8000*A + 800*B + 80*C + 1
x = 2000000*A + 200000*B + 20000*C + 250
x = 2000000*A + 200000*B + 20000*C + 250 + 1000*D + 100*E + 10*F + G
x = 2000000*A + 200000*B + 20000*C + 250 + 2000*D + 200*E + 20*F + 2*G
x = 2000000*A + 200000*B + 20000*C + 2000*D + 200*E + 20*F + 2*G
x = 1000000*A + 100000*B + 10000*C + 1000*D + 100*E + 10*F + G
Thus, we get back "ABC-DEFG"
.