\(B=\left(-\dfrac{1}{7}\right)^0+\left(-\dfrac{1}{7}\right)^1+\left(-\dfrac{1}{7}\right)^2+...+\left(-\dfrac{1}{7}\right)^{2018}\)
\(\Rightarrow-\dfrac{1}{7}B=\left(-\dfrac{1}{7}\right)^1+\left(-\dfrac{1}{7}\right)^2+\left(-\dfrac{1}{7}\right)^3+...+\left(-\dfrac{1}{7}\right)^{2019}\)
\(\Rightarrow-\dfrac{1}{7}B-1=\left(-\dfrac{1}{7}\right)^1+\left(-\dfrac{1}{7}\right)^2+\left(-\dfrac{1}{7}\right)^3+...+\left(-\dfrac{1}{7}\right)^{2019}-\left(-\dfrac{1}{7}\right)^0-\left(-\dfrac{1}{7}\right)^1-\left(-\dfrac{1}{7}\right)^2-...-\left(-\dfrac{1}{7}\right)^{2018}\)
\(\Rightarrow-\dfrac{8}{7}B=\left(-\dfrac{1}{7}\right)^{2019}-1\)
\(\Rightarrow B=\left[\left(-\dfrac{1}{7}\right)^{2019}-1\right]:\left(-\dfrac{8}{7}\right)\)
\(B=1-\dfrac{1}{7}+\dfrac{1}{7^2}-\dfrac{1}{7^3}+...-\dfrac{1}{7^{2017}}+\dfrac{1}{7^{2018}}\\ \Rightarrow7B=7-1+\dfrac{1}{7}-\dfrac{1}{7^2}+...-\dfrac{1}{7^{2016}}+\dfrac{1}{7^{2017}}\\ \Rightarrow7B+B=6+\dfrac{1}{7}-\dfrac{1}{7^2}+...+\dfrac{1}{7^{2017}}+1-\dfrac{1}{7}+\dfrac{1}{7^2}-\dfrac{1}{7^3}+...-\dfrac{1}{7^{2017}}+\dfrac{1}{7^{2018}}\\ \Rightarrow8B=7+\dfrac{1}{7^{2018}}=\dfrac{7^{2019}+1}{7^{2018}}\\ \Rightarrow B=\dfrac{7^{2019}+1}{8\cdot7^{2018}}\)