#include <bits/stdc++.h>
using namespace std;
const long long N = 1e+6 + 5;
long long big = 1e+18 + 3;
long long mod = 1e+9 + 7;
long long modof(long long val, long long with) {
  if (val < 0) {
    val += (abs(val) / with + 4) * with;
    val %= with;
    return val;
  } else
    return (val % with);
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long ar[n + 1];
    map<long long, long long> freq;
    for (long long i = 0; i <= n - 1; i++) {
      cin >> ar[i];
      ar[i] += i;
    }
    for (long long i = 0; i <= n - 1; i++) {
      ar[i] = modof(ar[i], n);
      freq[ar[i]]++;
    }
    bool dne = false;
    for (auto it : freq)
      if (it.second >= 2) dne = true;
    if (dne)
      cout << "NO"
           << "\n";
    else
      cout << "YES"
           << "\n";
  }
}
