Matrix Exponentiation

In Modified NK Ladder, do we have to change the values of C(i-k) regularly in the Transformation Matrix. As we don’t know the preceding values.
Can you please send the code of this question?