Class allowing for relatively fast calculation of kth element of recursive sequence with constant coefficients.