#include #include #include #include using namespace std; using lint=int64_t; const lint mod=1e9+7; int main() { const int MAX=2e6+10; vector fac(MAX,1); vector inv(MAX,1); vector finv(MAX,1); for(lint i=2;i> T; for(int i=0;i