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.