If A=100110111 and M=A+A2+A3+⋯+A20, then the sum of all the elements of the matrix M is equal to
Answer: 2020
Solutions · 1
Official solution
An=100n10(2n+1)n1 (standard pattern for this unipotent upper-triangular matrix).
\[M=2000∑n=120n200∑n=120(2n+1)∑n20.\]
∑n=120n=210. ∑n=120(2n+1)=∑n=1202n(n+1)=21(620⋅21⋅41+210)=21(2870+210)=1540.
Sum of all elements of M: 20+210+1540+20+210+20=2020.