Let and be fixed positive integers. Let be a positive integer and let be distinct integers. Suppose that whenever are integers, not all equal to , such that for each , then the sum
is not divisible by . What is the largest possible value of ?
Solution
The answer is .
Note first that for , taking works. Indeed let be maximal such that . Then on the one hand we have
On the other hand we have
So the sum is indeed not divisible by .
Assume now that and look at all -tuples of the form where each is a non-negative integer with . There are such tuples so there are two of them, say and such that
Now taking for each satisfies the requirements on the 's but divides the sum
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.