simplify (1+i) ^18 using the demoivres theorem