Product[Product[7/x - i, {i, 2, 7 - 1}],{x,2,7-1}]