Solve for q (q+1)/2=(q-1)/3