By default, arrays in Mathcad have origin 0, not 1. So the rows and columns go from 0 to n-1. Either that, or change the origin to 1 by typing ORIGIN:1 at the top of the worksheet, in which case the rows and columns will go from 1 to n.
When k is n-1, i=k+1 is n, which is outside the bounds of the array (unless you change the origin to 1).
Translate
Windchill Satisfaction Survey
Help shape the future of Windchill. Take our 5-minute survey and share your feedback.