\(n^2+2n-1⋮\left(3n-1\right)\Rightarrow9\left(n^2+2n-1\right)=9n^2+18n-9=\left(3n-1\right)\left(3n+7\right)-2⋮\left(3n-1\right)\)
\(\Leftrightarrow2⋮\left(3n-1\right)\Leftrightarrow3n-1\inƯ\left(2\right)=\left\{-2,-1,1,2\right\}\Rightarrow n\in\left\{0,1\right\}\)(vì \(n\)nguyên)
Thử lại đều thỏa mãn.
ôi hay bạn oiiiiiii