Kth term of Linearly Recurrent Sequence