apply backward algorithm to ContinuedFractionK[k + 1, k^2, {k, 6}]