Solve for n d+3n=1