Problem

Source: JOM 2025 P4

Tags: number theory



For each positive integer k, find all positive integer n such that there exists a permutation a1,,an of 1,2,,n satisfying a_1a_2\ldots a_i\equiv i^k \pmod nfor each 1\le i\le n. (Proposed by Tan Rui Xuen and Ivan Chan Guan Yu)