推出前几项为1,5,11,36 ,直接用oeis找出规律(:з」∠)a(n) = a(n-1) + 5*a(n-2) + a(n-3) - a(n-4)因此,可以用矩阵快速幂来算[a(5),a(4),a(3),a(2)] = [a(4),a(3),a(2),a(1)] * #include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <string> #include <stack> #include <...