I think you have missed a term. For 33 it should be:
(3^0 + 3^1 + 3^2) * (3 - 1) + 1 = 27 [download]
HTH.
🦛
In reply to Re^2: [OT] math fulguration by hippo in thread [OT] math fulguration by Discipulus