Ordered Arrangements: number of ways of arranging $1-9$ in a circle so that sum of 3 adjacent is divisible by 3 Find the number of ways of arranging the numbers $1, 2, 3, ... 9$ in a circle, so that the sum of any three adjacent numbers is divisible by $3$. (Two arrangements are considered the same if one arrangement can be rotated to obtain the other.)


I worked out that if I have the numbers in ascending/descending order, it will be divisible by $3$ (because $x-1 + x + x+1$ would be equal to $3x$).
I'm not sure how to use that information to work out the total number though (or if there are other ways to place them).

Please provide an answer to my question and help me with how to proceed with my approach.
Hint: $a_1 \equiv a_4 \equiv a_7 \pmod 3$. 

Likewise for the other indices. 

This gives us a constraint, dividing up into 3 sets of 3. Under this constraint, all permutations work.   

Hence $ \dfrac{3!\times (3!)^3}{9} = 144$ ways.
First, when we look at this problem we must think what does every set of 3 numbers contain. Since, $1 + 2 + 3 \equiv  0 \mod 3$ and $2 + 3 + 4 ≡  0 \mod 3$ then $1 + 2 + 3 \equiv 2 + 3 + 4 \mod 3$. So $1 ≡ 4 \mod 3$. 

Then we use the same tactic to find that $4 ≡ 7 \mod 3$. So $1 ≡ 4 ≡ 7 \mod 3$. Then we also find that $2 ≡ 5 ≡ 8 \mod 3$ and $3 ≡ 6 ≡ 9 \mod 3$. And since $1 + 2 +3 ≡  0 \mod 3$, we realize that a set of 3 must have one number from each set. 

We should start by putting $1$ on top to account for rotational symmetry. Then we have $2$ choices for which set to be to the right of the one. Then we have $3$ choices for which number from the set shall go there. Then there are $3$ choices for the number to the right of that one because there are $3$ numbers from the set that we did not use so far. Then there are $2$ choices for the number that goes to the right of that because we already used $1$ from that set. Then another $2$ for the next. and $2$ for the next. then there is only one option for how to arrange the rest of the numbers because there is only one number left from each set. 

So there are $2 * 3 * 3 * 2 * 2 * 2 * 1 = 144$ total ways to arrange the numbers $1-9$ in a circle if the sum of every $3$ adjacent numbers must be divisible by $3$.