∑0≤i≤m0<j<nP(i,j)