#include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair PII; typedef vector VI; typedef vector VVI; #define MP make_pair #define PB push_back ll mod = 1000000007; long long calc(long long k,long long m,long long p){ if(m==0)return 1; if(m==1)return k%p; long long s = calc(k,m/2,p); if(m%2==0){ return (s*s)%p; }else{ long long ans; ans = (s*s)%p; return (k*ans)%p; } } ll dp[100010]; ll kai[100010]; int main(){ int t; cin >> t; dp[0] = 0; for(ll i=1;i<=100000;i++){ dp[i] = (dp[i-1]+1 + dp[i-1]*calc(i,mod-2,mod))%mod; } kai[0] = 1; for(ll i=1;i<=100000;i++){ kai[i] = (i*kai[i-1])%mod; } for(int i=0;i> n; cout << (n*n)%mod << endl; cout << (n*n*n+n*n-n)%mod << endl; cout << t << endl; cout << (4*n*n+17)%mod << endl; cout << calc(n,calc(n,3,mod-1),mod) << endl; cout << n << endl; cout << (dp[n-1]*kai[n])%mod << endl; if(i!=(t-1))cout << endl; } return 0; }