Solution
1072-Two_Knights.cpp
1#include<bits/stdc++.h>
2using namespace std;
3#define int long long
4signed main(){
5 ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
6 int n; cin>>n;
7 for(int k=1;k<=n;++k)
8 cout<<(k*k*(k*k-1)/2-4*(k-1)*(k-2))<<'\n';
9 return 0;
10}Editorial not yet generated for this problem. Run the editorial generation script to add hints and detailed explanations.