\(n⋮n-2\\ \Rightarrow n-\left(n-2\right)⋮n-2\\ \Rightarrow2⋮n-2\\ \Rightarrow n-2\in\left\{1;2\right\}\\ \Rightarrow n\in\left\{3;4\right\}\)Vậy \(n\in\left\{3;4\right\}\)
\(n+7⋮n+1\\ \Rightarrow n+7-\left(n+1\right)⋮n+1\\ \Rightarrow6⋮n+1\\ \Rightarrow n+1\in\left\{1;2;3;6\right\}\\ \Rightarrow n\in\left\{0;1;2;5\right\}\)Vậy \(n\in\left\{0;1;2;5\right\}\)
\(21⋮2n+5\\ \Rightarrow2n+5\in\left\{1;3;7;21\right\}\\ \Rightarrow2n\in\left\{2;16\right\}\\ \Rightarrow n\in\left\{1;8\right\}\)Vậy \(n\in\left\{1;8\right\}\)
\(2n+7⋮2n+1\\ \Rightarrow2n+7-\left(2n+1\right)⋮2n+1\\ \Rightarrow6⋮2n+1\\ \Rightarrow2n+1\in\left\{1;2;3;6\right\}\\ \Rightarrow2n\in\left\{0;1;2;5\right\}\\ \Rightarrow n\in\left\{0;1\right\}\)Vậy \(n\in\left\{0;1\right\}\)