# Check four "almost exactly 1" values of A198683 at n=12 with plain mpmath (no code of mine involved).
# Runs anywhere Python + mpmath exist, e.g. paste into https://sagecell.sagemath.org (language: Python or Sage).
# Each expression is one way of parenthesizing twelve i's; the output is (value - 1).
from mpmath import mp, mpc, nstr
mp.dps = 3000          # 3000 significant digits
I = mpc(0, 1)
exprs = [
    "(I)**((I)**((I)**(((((I)**(I))**(I))**((I)**((I)**(I))))**((I)**((I)**(I))))))",
    "(I)**((I)**((I)**((((I)**(I))**(I))**((I)**((((I)**(I))**(I))**((I)**(I)))))))",
    "((I)**(I))**(((I)**(I))**(((I)**(((I)**(I))**(I)))**((I)**(((I)**(I))**(I)))))",
    "(I)**((I)**((I)**((I)**((I)**((((I)**(I))**(I))**((I)**((I)**((I)**(I)))))))))",
]
for e in exprs:
    print(nstr(eval(e) - 1, 5))
