#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int ar[n];
    for (int i = 0; i < n; i++) {
      cin >> ar[i];
    }
    unordered_map<int, int> mp;
    for (int i = 0; i < n; i++) {
      int a = (i + ar[i]) % n;
      if (a < 0) {
        a = a + n;
      }
      mp[a]++;
    }
    int flag = 1;
    for (auto& e : mp) {
      if (e.second > 1) {
        flag = -1;
        break;
      }
    }
    if (flag == 1) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
