Problem

Source: Iran 3rd round 2024 Combinatorics exam P1

Tags: combinatorics



$n\geq 4$ is an integer number. For any permutation $x_1,x_2,\cdots,x_n$ of the numbers $1,2 \cdots,n$ we write the number $$ x_1+2x_2+\cdots+nx_n $$on the board. Compute the number of total distinct numbers written on the board.