Giải thích các bước giải:
1. Ta có: $\overline{5a6b} \vdots 15 \Rightarrow \overline{5a6b} \vdots 3;5$
$\overline{5a6b} \vdots 5 \Rightarrow b \in \{0;5 \}$
TH1: `b=0 ⇒` Ta được số $\overline{5a60}$
Để $\overline{5a60} \vdots 3$ `=> (5+a+6+0)\vdots 3`
hay `(11+a)\vdots 3`
`=>a∈{1;4;7}`
TH2: `b=5⇒` Ta được số $\overline{5a65}$
Để $\overline{5a65} \vdots 3$ `⇒ (5+a+6+5)\vdots 3`
`=> 16+a\vdots3`
`=>a∈ {2;5;8}`
Vậy.......
2. $B=\dfrac{10^{2017}+1}{10^{2018}+1}<1\\\Rightarrow B<\dfrac{10^{2017}+1+9}{10^{2018}+1+9}=\dfrac{10^{2017}+10}{10^{2018}+10}=\dfrac{10(10^{2016}+1)}{10(10^{2017}+1)}=\dfrac{10^{2016}+1}{10^{2017}+1}=A$
Vậy `B<A`