factor (m+1)(n+1)mn/4-m(m+1)(3n−m+1)/6