MathDB
Permutation Sum

Source: 2021 AIME II #3

March 19, 2021
AMCAIMEAIME II

Problem Statement

Find the number of permutations x1,x2,x3,x4,x5x_1, x_2, x_3, x_4, x_5 of numbers 1,2,3,4,51, 2, 3, 4, 5 such that the sum of five products x1x2x3+x2x3x4+x3x4x5+x4x5x1+x5x1x2x_1x_2x_3 + x_2x_3x_4 + x_3x_4x_5 + x_4x_5x_1 + x_5x_1x_2 is divisible by 33.