Amy asks Mr. B problem A. Please help Mr. B to solve the following problem. Let Fibe fibonacci number. F0 = 0, F1 = 1, Fi = Fi-1 + Fi-2 Givenn and m, please calculate ∑i=0nFimsum_{i = 0}^n F_i^m∑i=0nFim As the answer might be very large, output it module 1000000000.
Amy asks Mr. B problem A. Please help Mr. B to solve the following problem. Let Fi be fibonacci number. F0 = 0, F1 = 1, Fi = Fi-1 + Fi-2 Given n and m, please calculate ∑i=0nFimsum_{i = 0}^n F_i^m∑i=0nFim As the answer might be very large, output it module 1000000000.
(图片来源网络,侵删)