Number theoryDifficulty 6.5National olympiadFind the answer
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 North Macedonia
A number or a short expression. Spacing and $ signs are ignored.
Solution
The answer is n=⌊logK+1N⌋. Note first that for n⩽⌊logK+1N⌋, taking ai=(K+1)i−1 works. Indeed let r be maximal such that mr=0. Then on the one hand we have
i=1∑nmiai⩽i=1∑nK(K+1)i−1=(K+1)n−1
So the sum is indeed not divisible by N. Assume now that n⩾⌊logK+1N⌋ and look at all n-tuples of the form (t1,…,tn) where each ti is a non-negative integer with ti⩽K. There are (K+1)n>N such tuples so there are two of them, say (t1,…,tn) and (t1′,…,tn′) such that
i=1∑ntiai≡i=1∑nti′aimodN
Now taking mi=ti−ti′ for each i satisfies the requirements on the mi 's but N divides the sum
i=1∑nmiai
a contradiction.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic and difficulty added by this site.