#include #include #include #define rep(i,n) for(int i=0; i<(int)(n); i++) using namespace std; typedef long long LL; const int Max_Num=2e5; const LL mod=1e9+7; LL modpow(LL x, LL n){ LL r=1; while(n){ if(n&1) r=r*x%mod; x=x*x%mod; n>>=1; } return r; } int main(){ int N, M; cin >> N >> M; assert(N>=1 && N<=Max_Num); assert(M>=1 && M<=N); for(LL X=1; X<=M; X++){ LL dis=(N+1)/X; LL rem=(N+1)%X; LL ans=modpow(dis,X-rem-1)*modpow(dis+1,rem)%mod; ans*=dis-1, ans%=mod; cout << ans << endl; } return 0; }