Solution 1
Since 3 is one of the numbers, a product with a 3 in it is automatically divisible by 3, so WLOG x3=3, and we will multiply by 5 afterward since any of x1,x2,…,x5 would be 3, after some cancelation we see that now all we need to find is the number of ways that x5x1(x4+x2) is divisible by 3, since x5x1 is never divisible by 3, now we just need to find the number of ways x4+x2 is divisible by 3. Note that x2 and x4 can be (1,2),(2,1),(1,5),(5,1),(2,4),(4,2),(4,5), or (5,4). We have 2 ways to designate x1 and x5 for a total of 8⋅2=16. So the desired answer is 16⋅5=080.
~math31415926535
~MathFun1000 (Rephrasing for clarity)
Solution 2 (Symmetry and Casework)
The expression x1x2x3+x2x3x4+x3x4x5+x4x5x1+x5x1x2 has symmetry. Without the loss of generality, let x1=3. It follows that {x2,x3,x4,x5}={1,2,4,5}. We have:
-
x1x2x3+x2x3x4+x3x4x5+x4x5x1+x5x1x2≡x2x3x4+x3x4x5(mod3).
-
x2,x3,x4,x5 are congruent to 1,2,1,2(mod3) in some order.
We construct the following table for the case x1=3, with all values in modulo 3:

For Row 1, (x2,x3) can be either (1,4) or (4,1), and (x4,x5) can be either (2,5) or (5,2). By the Multiplication Principle, Row 1 produces 2⋅2=4 permutations. Similarly, Rows 2, 5, and 6 each produce 4 permutations.
Together, we get 4⋅4=16 permutations for the case x1=3. By symmetry, the cases x2=3,x3=3,x4=3, and x5=3 all have the same count. Therefore, the total number of permutations x1,x2,x3,x4,x5 is 16⋅5=080.
~MRENTHUSIASM
Solution 3
WLOG, let x3=3 So, the terms x1x2x3,x2x3x4,x3x4x5 are divisible by 3.
We are left with x4x5x1 and x5x1x2. We need x4x5x1+x5x1x2≡0(mod3). The only way is when They are (+1,−1) or (−1,+1)(mod3).
The numbers left with us are 1,2,4,5 which are +1,−1,+1,−1(mod3) respectively.
+1 (of x4x5x1 or x5x1x2) =+1⋅+1⋅+1 OR+1 (of x4x5x1 or x5x1x2) = −1⋅−1⋅+1.
−1 (of x4x5x1 or x5x1x2) =−1⋅−1⋅−1 OR−1 (of x4x5x1 or x5x1x2) = −1⋅+1⋅+1
But, as we have just two +1′s and two −1′s. Hence, We will have to take +1=+1⋅−1⋅−1 and −1=−1⋅+1⋅+1. Among these two, we have a +1 and −1 in common, i.e. (x5,x1)=(+1,−1)or(−1,+1) (because x1 and x5. are common in x4x5x1 and x5x1x2).
So, (x5,x1)∈(1,2),(1,5),(4,2),(4,5),(2,1),(5,1),(2,4),(5,4) i.e. 8 values.
For each value of (x5,x1) we get 2 values for (x2,x4). Hence, in total, we have 8×2=16 ways.
But any of the xi′s can be 3. So, 16×5=080.
-Arnav Nigam
Solution 4 (Proportion)
WLOG, let x3=3. Then:
x1x2x3+x2x3x4+x3x4x5+x4x5x1+x5x1x2=3(x1x2+x2x4+x4x5)+x5x1(x2+x4).
The sum is divisible by 3 if and only if x2+x4 is divisible by 3. The possible sums of x2+x4 are 1+2,1+4,1+5,2+4,2+5,4+5. Two of them are not multiples of 3, but four of them are multiples.
A total number of permutations is 5!=120.
32 of this number, that is, 80, give sums that are multiples of 3.
vladimir.shelomovskii@gmail.com, vvsss
Solution 5 (Factoring)
This is my first time doing a solution (feel free to edit it)
We have
x1x2x3+x2x3x4+x3x4x5+x4x5x1+x5x1x2.
We have 5 numbers. Considering any x as 3, we see that we are left with two terms that are not always divisible by 3, which means that already gives us 5 options. Let's now consider x1=3:We are left with
3x2x3+x2x3x4+x3x4x5+3x4x5+3x5x2.
The two terms left over are
x2x3x4+x3x4x5≡0(mod3)
since we already have used 3 the remaining numbers are 1,2,4,5.
We now factor
(x2+x5)(x3x4)(x2+x5)≡0(mod3)≡0(mod3)
since 1,2,4,5 are all not factors of 3.
Now using the number 1,2,4,5, we take two to get a number divisible by 3 for (x2+x5):
1+54+24+51+2≡0(mod3),≡0(mod3),≡0(mod3),≡0(mod3).
We have 4 possibilities from above. Since we can also have 5+1 or 2+4, there are 4⋅2=8 possibilities in all.
Now using
(x2+x5)(x3x4)≡0(mod3),
we have (x3x4), which results in 8 more possibilities of 2 times more. So, we get 2⋅2⋅4=16.
Remember that 3 can be any of 5 different variables. So, we multiply by 5 to get the answer 080.
Video Solution
https://www.youtube.com/watch?v=HikWWhQlkVw