TH1:n-1 chia hết cho n+5
=>n+5-6 chia hết cho n+5
Mà n+5 chia hết cho n+5
=>6 chia hết cho n+5
=>n+5\(\in\)Ư(6)={-6,-3,-2,-1,1,2,3,6}
=>n\(\in\){-11,-8,-7,-6,-4,-3,-2,1}
TH2:n+5 chia hết cho n-1
=>n-1+6 chia hết cho n-1
Mà n-1 chia hết cho n-1
=>6 chia hết cho n-1
=>n-1\(\in\)Ư(6)={-6,-3,-2,-1,1,2,3,6}
=>n\(\in\){-5,-2,-1,0,2,3,4,7}