求1^k+2^k+3^k+4^k+5^k.....%1000000007

#include 
#include 
#include 

using namespace std;
typedef long long LL;
const LL MOD = 1000000007;
const int N = 2005;

LL C[N][N];
LL B[N],Inv[N];
LL Tmp[N];
LL n;

void Init()
{
    for(int i=0; i> n >> k){
        n %= MOD;
        Tmp[0] = 1;
        for(int i=1; i


你可能感兴趣的:(数学)