Q.
If $A=\begin{bmatrix}1 & 1 & 1 \\ 0 & 1 & 1 \\ 0 & 0 & 1\end{bmatrix}$
$M=A+A^{2}+A^{3}+\ldots \ldots+A^{20}$, then the sum of all the elements of the matrix $M$ is equal to ____
Solution: