For two upper triangular matrices and ,
Indeed a potentially nonzero factor requires , while a potentially nonzero requires . These requirements cannot both hold when . Thus their matrix product is upper triangular.
Direct matrix multiplication for the given gives
Adding yields , so . Hence
Every nonnegative matrix power is in : reduce powers of degree at least three using . More formally, repeated reduction shows that products of any two polynomials of degree at most two in again lie in this span. Since also lies in it, positive powers of prove the same assertion for all negative integers. This is an instance of the integer powers for an annihilating polynomial with roots one and minus one, because .
To find the required entries for every integer, use the block upper-triangular structure. The top-left entry of is for positive and negative powers. Its lower-right block is
The identity holds for all integers: multiplication adds the coefficients of , and proves the negative cases. Therefore
Write and . Comparing those three entries gives
Subtracting the first two equations finds ; the third then finds , and the first finds . The unique solution is
For clarity, substituting also gives the full matrix power