\(B=\dfrac{1}{2}+\left(\dfrac{1}{2}\right)^2+\left(\dfrac{1}{2}\right)^3+\left(\dfrac{1}{2}\right)^4+...+\left(\dfrac{1}{2}\right)^{98}+\left(\dfrac{1}{2}\right)^{99}\)
\(\Rightarrow2B=1+\dfrac{1}{2}+\left(\dfrac{1}{2}\right)^2+\left(\dfrac{1}{2}\right)^3+...+\left(\dfrac{1}{2}\right)^{97}+\left(\dfrac{1}{2}\right)^{98}\)
\(\Rightarrow2B-B=\left[1+\dfrac{1}{2}+\left(\dfrac{1}{2}\right)^2+\left(\dfrac{1}{2}\right)^3+...+\left(\dfrac{1}{2}\right)^{97}+\left(\dfrac{1}{2}\right)^{98}\right]-\left[\dfrac{1}{2}+\left(\dfrac{1}{2}\right)^2+\left(\dfrac{1}{2}\right)^3+\left(\dfrac{1}{2}\right)^4+...+\left(\dfrac{1}{2}\right)^{98}+\left(\dfrac{1}{2}\right)^{99}\right]\)
\(\Rightarrow B=1-\left(\dfrac{1}{2}\right)^{99}\)