\(A=1+3^1+3^2+...+3^{2017}\)
\(3A=3+3^2+3^3+...+3^{2018}\)
\(3A-A=\left(3+3^2+3^3+...+3^{2018}\right)-\left(1+3^1+3^2+...+3^{2017}\right)\)
\(2A=3^{2018}-1\)
\(A=\frac{3^{2018}-1}{2}\)
\(\Rightarrow\)\(B-A=\frac{3^{2018}}{2}-\frac{3^{2018}-1}{2}=\frac{3^{2018}-3^{2018}+1}{2}=\frac{1}{2}\)
Vậy \(B-A=\frac{1}{2}\)
Chúc bạn học tốt ~
ta có: A = 1 + 31 + 32 + ...+ 32017
=> 3A = 31 + 32 + 33 + ....+ 32018
=> 3A - A = 32018 - 1
\(\Rightarrow A=\frac{3^{2018}-1}{2}\)
\(\Rightarrow\frac{A}{B}=\frac{\frac{3^{2018-1}}{2}}{\frac{3^{2018}}{2}}=\frac{\frac{3^{2018}}{2}}{\frac{3^{2018}}{2}}-\frac{1}{\frac{3^{2018}}{2}}=1-\frac{1}{\frac{3^{2018}}{2}}\)