>>788
nx^2-(3n+1)x-7=0
⇔x(nx-3n-1)=7
(x,nx-3n-1)=(1,7)(7,1)(-1,-7)(-7,-1)
………
n=-4,0