#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 6;
const long long MOD = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  ;
  mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
  int ttt;
  cin >> ttt;
  while (ttt--) {
    int n;
    cin >> n;
    vector<bool> v(n);
    for (int i = 0; i < (n); ++i) {
      int tv;
      cin >> tv;
      tv %= n;
      v[(tv + i + n) % n] = true;
    }
    bool bl = true;
    for (int i = 0; i < (n); ++i) {
      if (v[i] != 1) bl = false;
    }
    if (bl)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
