\(S=1+3+3^2+3^3+3^4+...+3^{2018}\)
Đặt \(3S=3\left(1+3+3^2+3^3+3^4+...+3^{2018}\right)\)
=> \(3S=3+3^2+3^3+3^4+3^5+...+3^{2019}\)
=> \(3S-S=\left(3+3^2+3^3+3^4+3^5+3^{2019}\right)-\left(1+3+3^2+3^3+3^4+...+3^{2018}\right)\)=> \(2S=3^{2019}-1\)
=> \(2S-3^{2018}=3^{2019}-1-3^{2018}\)
Vậy \(A=3^{2019}-1-3^{2018}\)
_Chúc bạn học tốt_