a) \(n^2-3n+9\)chia het cho \(n-2\)
\(\Leftrightarrow\)\(n^2-2n-n-2+11\)chia het cho \(n-2\)
\(\Leftrightarrow\)\(\left(n-2\right)\left(n+1\right)+11\)chia het cho \(n-2\)
\(\Leftrightarrow\)11 chia het cho \(n-2\)
\(\Rightarrow\)\(n-2\in U\left(11\right)\)\(\Rightarrow\)\(n-2\in\left\{-11;-1;1;11\right\}\)
\(\Rightarrow\)\(n\in\left\{-9;1;3;13\right\}\)
b) 2n-1 chia hết cho n-2
\(\Rightarrow2n-2+3\) chia hết cho\(n-2\)
\(\Rightarrow3\)chia hết cho \(n-2\)
\(\Rightarrow n-2\in U\left(3\right)\)\(\Rightarrow n-2\in\left\{-3;-1;1;3\right\}\)\(\Rightarrow n\in\left\{-1;1;3;5\right\}\)