#include <bits/stdc++.h>
using namespace std;
const int N = 200010;
int n;
int a[N], ans[N];
signed main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  for (int i = 2; i <= n; i++) {
    for (int l = 1, r; l < i - 1; l = r + 1) {
      r = (i - 2) / ((i - 2) / l);
      if (a[(i - 2) / l + 1] > a[i]) ++ans[l], --ans[r + 1];
    }
  }
  for (int i = 2; i <= n; i++)
    if (a[1] > a[i]) ++ans[i - 1], --ans[n];
  for (int i = 2; i < n; i++) ans[i] += ans[i - 1];
  for (int i = 1; i < n; i++) printf("%d ", ans[i]);
  puts("");
  return 0;
}
