\(B=\dfrac{3\left(n+5\right)-25}{n+5}=3-\dfrac{25}{n+5}\Rightarrow n+5\inƯ\left(25\right)=\left\{\pm1;\pm5;\pm25\right\}\)
n+5 | 1 | -1 | 5 | -5 | 25 | -25 |
n | -4 | -6 | 0 | -10 | 20 | -30 |
Bài 1:
Để B là số nguyên thì \(3n+15-24⋮n+5\)
\(\Leftrightarrow n+5\in\left\{1;-1;2;-2;3;-3;4;-4;6;-6;8;-8;12;-12;24;-24\right\}\)
hay \(n\in\left\{-4;-6;-3;-7;-2;-8;-1;-9;1;-11;3;-13;7;-17;19;-29\right\}\)