#include <bits/stdc++.h>
using namespace std;
const int N = 2 * 1e5 + 3;
const int INF = INT_MAX;
const int NEINF = INT_MIN;
int n;
int res[N] = {};
void ReadData() {
  for (int i = 0; i < n; ++i) {
    int tmp;
    cin >> tmp;
    res[i] = i + tmp;
    res[i] = res[i] % n;
    if (res[i] < 0) res[i] += n;
  }
}
bool Solve() {
  sort(res, res + n);
  for (int i = 0; i < n; ++i) {
    if (res[i] != i) return false;
  }
  return true;
}
int main() {
  cin.tie(NULL);
  ios_base::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) {
    cin >> n;
    ReadData();
    if (Solve())
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
