Legendre Symbol of f(i,j) over 0<i<j<p/2, p mid f(i,j) - Chao Huang (2020)