#include<bits/stdc++.h> using namespace std; int main(){ int a=1,i; for(i=1;i<=30;i++){ cout<<a<<' '; a=2*a+1; } }