(d|m^2-n^2|,2dmn,d(m^2+n^2))