Question: Custom filling in matrix

Hello..

I need to write a function in maple which creates matrices from 1x1 to 20x20.. And the filling in the matrix needs to be 1 in the diagonal. But not like the diagonal in the identity matrix, but the opposite..: see picture:

Matrix

So the amounts of 1 increase depending on the size of the matrix...

I know that i can put the function in a for loop to do the steps 20 times...

Thanks. 

Please Wait...