Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define F first
- #define S second
- #define pb push_back
- #define P push
- #define B begin()
- #define E end()
- #define SI size()
- #define R return
- #define C continue
- #define W while
- #define SF(x) scanf("%I64d",&x);
- #define MEM(vis,i) memset(vis,i,sizeof(vis))
- #define rep(i,x,n) for(int i=x;i<n;i++)
- using namespace std;
- typedef long long ll;
- typedef pair<ll,ll> pll;
- const long long MOD = 1e8;
- const long long MAX = 1e14+8;
- const long long MAXN = 1e5+8;
- ll b[29];
- int main()
- {
- ll n;
- cin>>n;
- ll num=2;
- for(ll i=1;i<=n;i++){
- cout<<(i*(i+1)*(i+1))-(num/i)<<endl;
- num=i*(i+1);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment