#include <bits/stdc++.h>
using namespace std;
int 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;
    vector<long long> arr(n);
    vector<bool> avail(n);
    for (long long i = 0; i < n; i++) {
      cin >> arr[i];
      arr[i] = (arr[i] + i) % n;
      if (arr[i] < 0) arr[i] += n;
      if (arr[i] >= 0 && arr[i] < n) avail[arr[i]] = true;
    }
    bool ans = true;
    for (long long i = 0; i < n; i++) {
      if (!avail[i]) {
        ans = false;
        break;
      }
    }
    if (ans)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
