View Code of Problem 73

#include<iostream>
#include<bits/stdc++.h>
#include<string.h>
using namespace std;

int main(){
	
	int n;
	cin>>n;
	int sum=1;
	for(int i=1;i<n;i++){
		sum=(sum+1)*2;
	}
	cout<<sum<<endl;
	return 0;
		
}

Double click to view unformatted code.


Back to problem 73