#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int arr[200001];
    bool vis[200001] = {};
    long long int n;
    cin >> n;
    for (long long int i = 0; i < n; i++) cin >> arr[i];
    ;
    string ans = "YES";
    for (long long int i = 0; i < n; i++) {
      long long int x = (arr[i] % n + n) % n;
      x = (x + i) % n;
      if (vis[x]) ans = "NO";
      vis[x] = true;
    }
    cout << ans << endl;
  }
}
