#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long x = 0, f = 0, j, q = 1, i, n, m, k;
  cin >> q;
  while (q--) {
    x = 0;
    cin >> n;
    vector<long long> a(n);
    unordered_map<long long, long long> m;
    for (i = 0; i < n; i++) cin >> a[i];
    for (i = 0; i <= n - 1; i++) m[(i + (a[i] % n) + n) % n]++;
    for (auto i : m)
      if (i.second > 1) x = -1;
    if (x == 0)
      cout << "YES";
    else
      cout << "NO";
    cout << "\n";
  }
}
