Let K and N>K be fixed positive integers. Let n be a positive integer and let a1,a2,...,an be distinct integers. Suppose that whenever m1,m2,...,mn are integers, not all equal to 0, such that ∣mi∣≤K for each i, then the sum
i=1∑nmiai
is not divisible by N. What is the largest possible value of n?Proposed by Ilija Jovcevski, North Macedonia Balkanshortlist2021combinatoricsDivisibilitymaximum