#include <bits/stdc++.h>
using namespace std;
long long int powr(long long a, long long b) {
  if (b == 0) {
    return 1;
  }
  if (b % 2 == 0) {
    return powr(((a % 1000000007) * (a % 1000000007)) % 1000000007, b / 2);
  } else {
    if (b == 1) {
      return a;
    } else {
      return (a * powr(((a % 1000000007) * (a % 1000000007) % 1000000007),
                       (b - 1) / 2)) %
             1000000007;
    }
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  for (long long i = 1; i <= t; i++) {
    long long n;
    cin >> n;
    long long a[n];
    for (long long i = 1; i <= n; i++) {
      cin >> a[i];
    }
    set<long long> s;
    for (long long i = 1; i <= n; i++) {
      a[i] %= n;
      a[i] = (a[i] + n) % n;
      s.insert((a[i] + i) % n);
    }
    if (s.size() == n) {
      cout << "YES"
           << "\n";
    } else {
      cout << "NO"
           << "\n";
    }
  }
  cerr << "Time : " << 1000 * ((double)clock()) / (double)CLOCKS_PER_SEC
       << "ms\n";
  return 0;
}
