Kth term of linearly recurrent sequence
(Mylib/Math/linearly_recurrent_sequence.cpp)
Operations
$a_i \equiv \sum_{j=0}^{d - 1}c_j a_{i - d + j}$を満たす数列aの$a_0 \ldots a_{d-1}$と係数$c_0 \ldots c_{d-1}$から$a_n$を求める。
Requirements
Notes
Problems
References
Verified with
Code
Back to top page