How many ways are there to arrange the numbers 1, 2, 3, 4, 5, 6, 7, 8, and 9 in a circle so that the sum of any 3 adjacent numbers is divisible by 3?
https://web2.0calc.com/questions/help-quick_12
and
https://web2.0calc.com/questions/help-pls-fast_2
and
https://web2.0calc.com/questions/help-please_22649
Each number is a multiple of 3, or 1 more than a multiple of 3, or one less than a multiple of 3. These number we will call x's, y's, and z's.
If we add x + y + z, then we get x, because y and z will even each other out, since y is 1 more than multiple of 3 and z is one less.
Because of this, we can conclude that we have to arrange the numbers in a repeating pattern, like x, y, z, x, y, z, ... or z, y, x, z, y, x, ...
In this set 1, 2, 3, ..., 9, there are 3 x's, 3 y's, and 3 z's.
To fill up a pattern, there are 3 choices for the first x, y, z, 2 choices for second, then 1 choice.
3^3 * 2^3 * 1^3 = 27*8*1 = 216
This is equal for both patterns, so there are 216 * 2 = 432 ways to arrange the numbers.