\(24+n⋮n\Rightarrow24⋮n\)
\(\Rightarrow n\in\left\{1;2;3;4;6;8;12;24\right\}\)
b) \(15-n⋮n\Rightarrow15⋮n\)
\(\Rightarrow n\in\left\{1;3;5;15\right\}\)
\(n+15⋮n+3\)
\(\Rightarrow12⋮n+3\)
\(\Rightarrow n+3\in\left\{3;4;6;12\right\}\)
\(\Rightarrow n\in\left\{0;1;3;9\right\}\)
\(2n+9⋮n+2\)
\(\Rightarrow5⋮n+2\)
\(\Rightarrow n+2=5\)
\(\Rightarrow n=3\)