Solve for n i^13+i^18+i^31+n=0