#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  vector<int> ans(n + 1);
  for (int v = 1; v < n; ++v) {
    int p = v - 1;
    while (p > 0) {
      int lk = (v - 1) / (p + 1) + 1, rk = (v - 1) / p;
      if (a[p] > a[v]) {
        ans[lk]++;
        ans[rk + 1]--;
      }
      p = (v - 1) / (rk + 1);
    }
    if (a[0] > a[v]) {
      int lk = v, rk = n - 1;
      ans[lk]++;
      ans[rk + 1]--;
    }
  }
  for (int i = 1; i < n; ++i) {
    ans[i] += ans[i - 1];
    cout << ans[i] << ' ';
  }
  cout << endl;
}
