t = int(input()) for _ in range(t): n = int(input()) a = list(map(int, input().split())) s = sum(a) mx = max(a) print("Yes") if s % 3 == 0 and mx <= s/3 else print("No")