#include #include #include using namespace std; using ll=long long; #define rep(i,n) for(int i=0;i=0;i--) #define all(v) v.begin(),v.end() #define rall(v) v.rbegin(),v.rend() template bool chmax(T &a, T b){if (a < b){a = b;return true;} else return false;} template bool chmin(T &a, T b){if (a > b){a = b;return true;} else return false;} vectore= { 1.0000000000000000, 1.0833333333333333, 1.2569444444444444, 1.5353009259259260, 1.6915991512345676, 2.0513639724794235 }; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); cout<p(6); rep(i,5){ p[i]=e[i+1]-1; rep(j,i)p[i]-=p[j]*e[i-j]; } p[5]=1; rep(i,5)p[5]-=p[i]; for(int i=6;i<1e6;i++){ double b=1; rep(j,6)b+=p[j]*e[i-1-j]; e.push_back(b); } int t; cin>>t; while(t--){ int n; cin>>n; n--; cout<