View Code of Problem 73

#include<iostream>
using namespace std;
int main(){
	int N;
	while(cin>>N){
		long long sum=1;
		for(int i=1;i<N;i++){
			sum=2*(sum+1);
		}
		cout<<sum<<endl;
	}
}

Double click to view unformatted code.


Back to problem 73