#include using namespace std; using ld = long double; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); int T; cin >> T; while(T--){ int K; ld p, ans=0, q, r, s=1; cin >> p >> K; r = p; q = 1.l-p; for (int i=1; i