Help with coding a matrix in Mathcad Prime 9.0
I am trying to write a code in Mathcad Prime 9.0 to make a K matrix by making the K0 matrix of zeroes populate with k matrix numbers as shown below and in the file attached. If anyone could please help me with the Mathcad code for that it would be much appreciated! (P.S. I do not have any experience with coding therefore I am not even sure where to start)
Here is my mathcad:

This is what the K matrix should look like and it should be able to work for any n value




