#include <bits/stdc++.h>
using namespace std;
long long int arr[200001];
int cnt[200001];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  bool flag;
  int T;
  cin >> T;
  while (T--) {
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    for (int i = 0; i < n; i++) {
      cnt[i] = 0;
    }
    for (int i = 0; i < n; i++) {
      arr[i] = (arr[i] + i + n * 2147483647) % n;
      cnt[arr[i]]++;
    }
    flag = 1;
    for (int i = 0; i < n; i++) {
      if (cnt[i] != 1) {
        flag = 0;
      }
    }
    if (flag == 1) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
