Rosetta Problems

∑riid\sum r^i i^d

r,d,nr, d, n が与えられ、∑i=0n−1riid\sum_{i=0}^{n-1} r^i i^d を求める。

関連リンク