Solve for n 27pi=pin