Problem

Source: Mexico National Olympiad Mock Exam 2019 P4

Tags: number theory, Divisibility



Find all positive integers $n$ such that it is possible to split the numbers from $1$ to $2n$ in two groups $(a_1,a_2,..,a_n)$, $(b_1,b_2,...,b_n)$ in such a way that $2n\mid a_1a_2\cdots a_n+b_1b_2\cdots b_n-1$. Proposed by Alef Pineda