Consider the set of 5-tuples of positive integers at most 5. We say the tuple is perfect if for any distinct indices , the three numbers do not form an arithmetic progression (in any order). Find the number of perfect 5-tuples.
Solution
There are two situations. 1. The multiset is aabbc; the only condition here is , for such triples, where is the set of unordered triples which do not satisfy the condition, and . Each one gives orderings, so in this case. 2. There are four distinct elements in the tuple. Then, the elements must be . All of them work, for an additional . Therefore, there are such tuples.
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.