\(n^2+n-17\) chia hết cho n+5
<=>\(n^2+5n-4n-20+3\)chia hết cho n+5
<=>\(n\left(n+5\right)-4\left(n+5\right)+3\)chia hết cho n+5
<=>\(\left(n-4\right)\left(n+5\right)+3\) chia hết cho n+5
Mà ( n - 4 ) ( n + 5 ) chia hết cho n+5 <=> 3 chia hết cho n+5
<=>\(n+5\inƯ\left(3\right)=\left\{-3;-1;1;3\right\}\)
<=>\(n\in\left\{-8;-6;-4;-2\right\}\)
Vậy ...............