#include <bits/stdc++.h>
using namespace std;
template <class T>
bool mini(T &a, T b) {
  return a > b ? (a = b, true) : false;
}
template <class T>
bool maxi(T &a, T b) {
  return a < b ? (a = b, true) : false;
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.precision(10);
  cout << fixed;
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> a(n), b;
    for (int i = 0; i < (int)(n); i++) cin >> a[i];
    int ok = 1;
    for (int i = 0; i < (int)(n); i++) {
      int tmp = ((i % n) + n) % n;
      int idx = i + a[tmp];
      idx = ((idx % n) + n) % n;
      if (find((b).begin(), (b).end(), idx) != b.end()) {
        ok = 0;
        break;
      }
      b.push_back(idx);
    }
    if (ok)
      cout << "YES"
           << "\n";
    else
      cout << "NO"
           << "\n";
  }
}
