series vs wall

can anyone tell me how to solve this using matrix multiplication method…CodeChef: Practical coding for everyone
…or what is the matrix relation this user used…CodeChef: Practical coding for everyone

1 Like

Your first link is invalid. I think you meant http://www.codechef.com/DTCT2015/problems/WSERIES