Suppose that $n$ is a positive integer and that $a$ is the integer equal to \( \frac{10^{2n}-1}{3(10^n+1)} \). If the sum of the digits of $a$ is 567, what is the value of $n$?

Let's think step by step and output the final answer within \boxed{}.
user