Rosetta Problems

K-bonacci 数列

a1=⋯=aK=1a_1 = \cdots = a_K = 1、ai=ai−1+⋯+ai−Ka_i = a_{i-1} + \cdots + a_{i-K} で定まる数列の第 NN 項を求める。

関連リンク