#include <bits/stdc++.h>
using namespace std;
long long t;
long long a[200005];
int main() {
  ios_base::sync_with_stdio(false);
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
      if (a[i] >= 0)
        a[i] %= n;
      else {
        long long x = abs(a[i] / n);
        a[i] = a[i] + n * (x + 5);
        a[i] %= n;
      }
    }
    vector<long long> v;
    map<long long, long long> m;
    for (int i = 1; i <= n; i++) {
      v.push_back(((i - 1) + a[i]) % n);
      m[((i - 1) + a[i]) % n]++;
    }
    bool flag = false;
    for (auto x : v) {
      if (m[x] > 1) {
        flag = 1;
      }
    }
    if (!flag)
      cout << "yes";
    else
      cout << "no";
    cout << endl;
  }
}
