Ta có:
\(A=3^{1999}-7^{1957}\)
\(A=3^{1996}.3^3-7^{1956}.7\)
\(A=\left(3^4\right)^{499}.27-\left(7^4\right)^{489}.7\)
\(A=\left(\overline{...1}\right)^{499}.27-\left(\overline{...1}\right)^{489}.7\)
\(A=\left(\overline{...1}\right).\left(\overline{...7}\right)-\left(\overline{...1}\right).7\)
\(A=\overline{...7}-\overline{...7}\)
\(A=\overline{...0}\)
Vì \(\overline{...0}\text{⋮}5\)nên A⋮5 (đpcm)
Ta có:
\(B=51^n+47^{102}\)
\(B=\overline{...1}+47^{100}.47^2\)
\(B=\overline{...1}+\left(47^4\right)^{25}.\left(\overline{...9}\right)\)
\(B=\overline{...1}+\left(\overline{...1}\right)^{25}.\left(\overline{...9}\right)\)
\(B=\overline{...1}+\left(\overline{...1}\right)\left(\overline{...9}\right)\)
\(B=\overline{...1}+\overline{...9}\)
\(B=\overline{...0}\)
Vì \(\overline{...0}\text{⋮}10\)nên B⋮10 (đpcm)