2.a) Vì n chia 8 dư 1, n chia 30 dư 21 nên [tex]\left\{\begin{matrix} n+39\vdots 8\\ n+39\vdots 30 \end{matrix}\right.\Rightarrow n+39\vdots BCNN(8,30)\Rightarrow n+39\vdots 120[/tex]
Vì n có 3 chữ số nên [tex]n\leq 999\Rightarrow n+39\leq 1038[/tex]
Để n lớn nhất thì [tex]n+39=960\Rightarrow n=921[/tex]
b) [tex]n^2+7n+2\vdots n+4\Rightarrow (n+3)(n+4)-10\vdots n+4\Rightarrow 10\vdots n+4\Rightarrow n+4\in Ư(10)[/tex]
Vì [tex]n\in \mathbb{N}\Rightarrow n\geq 0\Rightarrow n+4\geq 4\Rightarrow n+4\in \left \{ 5;10 \right \}\Rightarrow n\in \left \{ 1;6 \right \}[/tex]
c) [tex]\overline{1a7b}+4\vdots 9\Rightarrow 1+a+7+b+4\vdots 9\Rightarrow 12+a+b\vdots 9\Rightarrow 12+b+3+b\vdots 9\Rightarrow 15+2b\vdots 9[/tex]
Vì [tex]15+2b\vdots 9\vdots 3,15\vdots 3\Rightarrow b\vdots 3\Rightarrow b\in \left \{ 0;3;6;9 \right \}[/tex]
Thử lại tìm được b rồi tìm a.