Q(N,M,aj,bj,q)=Q(M,N,bj,aj,q)