Solve for a ab-a=-b+1