Problem

Source: Kazakhstan National 2019 Problem 4

Tags: number theory, Divisibility



Find all positive integers $n,k,a_1,a_2,...,a_k$ so that $n^{k+1}+1$ is divisible by $(na_1+1)(na_2+1)...(na_k+1)$