#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    vector<long long> v(n);
    for (int i = 0; i < n; i++) cin >> v[i];
    map<long long, long long> mp;
    for (int i = 0; i < n; i++) ++mp[((i + v[i] + n) % n + n) % n];
    bool flag = true;
    for (auto it : mp) {
      if (it.second != 1) {
        flag = false;
        break;
      }
    }
    cout << (flag ? "YES\n" : "NO\n");
  }
  return 0;
}
