Let $A=\left[\begin{array}{cc}1 & \frac{1}{51} \\ 0 & 1\end{array}\right]$. If $B=\left[\begin{array}{cc}1 & 2 \\ -1 & -1\end{array}\right] A\left[\begin{array}{cc}-1 & -2 \\ 1 & 1\end{array}\right]$, then the sum of all the elements of the matrix $\sum_{n=1}^{50} B^n$ is equal to-