#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long ar[n + 10];
    long long k = 1;
    for (int i = 0; i < n; i++) cin >> ar[i];
    int br[440500] = {0};
    for (int i = 0; i < n; i++) {
      int a = (n + ((ar[i] + i) % n)) % n;
      br[a]++;
      if (br[a] > 1) k = 0;
    }
    if (k)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
