3n+2 chia hết cho 2n-1
=>6n+4 chia hết cho 2n-1
=>6n-3+7 chia hết cho 2n-1
=>3(2n-1)+7 chia hết cho 2n-1
=>7 chia hết cho 2n-1
\(\Rightarrow2n-1\in\left\{-7;-1;1;7\right\}\)
\(\Rightarrow2n\in\left\{-6;0;2;8\right\}\)
\(\Rightarrow n\in\left\{-3;0;1;4\right\}\)
b,n2-7 chia hết cho n+3
=>n2+3n-(3n+7) chia hết cho n+3
=>n(n+3)-(3n+9-2) chia hết cho n+3
=>n(n+3)-3(n+3)+2 chia hết cho n+3
=>(n-3)(n+3)+2 chia hết cho n+3
=>2 chia hết cho n+3
\(\Rightarrow n+3\in\left\{-2;-1;1;2\right\}\)
\(\Rightarrow n\in\left\{-5;-4;-2;-1\right\}\)