Solve for a s=n(a+1)