Okay, so neither option worked whether or not I used division or multiplication for the final number. I reloaded my auto save (beginning of the tomb) and I was able to enter in the equation exactly as I did before, however this time it actually worked. If anyone comes across this bug in future, just reload the auto-save and it should work, the terminal is pretty much right there anyway so you don't have much backtracking to do.