Simply notice that $\rm\displaystyle\ \frac{n}3 + \frac{2n}3 = n\in \mathbb Z\ \ $ thus $\rm\displaystyle\ \frac{n}3\in\mathbb Z \iff \frac{2n}3\in \mathbb Z.\,$ This works precisely because $\rm\mathbb Z$ is an additive subgroup of $\rm\:\mathbb Q,\:$ i.e. a subset closed under subtraction. For if $\rm\:S\:$ is a subgroup of a group and $\rm\ a+b\ = s \in S\ $ then $\rm\ a = b-s \in S\!\iff\! a+s = b\in S,\, $ so your property holds. Conversely if the property holds and $\rm\:a,b\in S\ $ then since $\rm\, (a-b)+b = a \in S\, $ the property implies that $\rm\: a-b\in S\:,\: $ so (nonempty) $\rm\:S\:$ is closed under subtraction, so $\rm\:S\:$ is a subgroup, by the subgroup test.
See also the below complementary form of the subgroup property from my prior post.
Theorem $\ $ A nonempty subset $\rm\:S\:$ of abelian group $\rm\:G\:$
comprises a subgroup $\rm\iff\ S\ + \ \bar S\ =\ \bar S\ $ where $\rm\: \bar S\:$ is the complement of $\rm\:S\:$ in $\rm\:G$
Instances of this are ubiquitous in concrete number systems, e.g.
transcendental
algebraic * nonalgebraic = nonalgebraic if nonzero
rational * irrrational = irrational if nonzero
real * nonreal = nonreal if nonzero
even + odd = odd additive example
integer + noninteger = noninteger