summaryrefslogtreecommitdiff
path: root/introductory_problems/two_knights.cpp
blob: 60933bc6467f5288543ee9372653dd74e46115db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 1072. Two Knights
#include <bits/stdc++.h>
using namespace std;

int main() {
  static int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    long long cnt = 1LL + (i - 1) * (i - 2) / 2;
    cnt = cnt * (i - 1) * (i + 4);
    printf("%lld\n", cnt);
  }
}