\(\text{Ta có}:\)
\(27-5n\)\(⋮\)\(n\)
\(\text{Mà 5n}\)\(⋮\)\(5\)\(\text{nên 27 }⋮\)\(5\)
\(\Rightarrow n\inƯ\left(27\right)=\left\{1;3;9;27\right\}\)
\(\text{Vậy}\)\(n\in\left\{1;3;9;27\right\}\)
\(\text{Ta có}:\)
\(n+6\)\(⋮\)\(n+2\)
\(\Rightarrow n+2+4\)\(⋮\)\(n+2\)
\(\text{Mà n + 2}\)\(⋮\)\(n+2\)\(\text{nên 4}\)\(⋮\)\(n+2\)
\(\Rightarrow n+2\inƯ\left(4\right)=\left\{1,-1,2,-2,4,-4\right\}\)
\(\Rightarrow n\in\left\{-1,-3,0,-5,2,-6\right\}\)
\(\text{Mà n }\in N\)\(\text{nên}\)\(:\)
\(n\in\left\{0,2\right\}\)