On the Subject of Bases

Right so basically...

Convert the First number
from base...
(Lit indicators + Last digit of S#
+ 3 (if DVI-D port present)) mod 7 + 2
...to base 10
Convert the Second number
from base...
(Unlit indicators + First digit of S#
+ 6 (if Serial port present)) mod 7 + 2
Apply the given operator on the two numbers
Give the Answer in base...
(i.e. convert Answer from base 10 to base...)
(Port Plates + 2 (if IND indicator present)) mod 7 + 2