#include <iostream>
using namespace std;

int main() {
    int n;
    int k;
    cin >> n;
    while (n-- > 0) {
    	cin >> k;
    	cout << (1 << k) - 1 << endl;
    }
	return 0;
}