### Part (a): Prove that any perfect square is amazing.
1. Define the problem and notation:
- We need to show that for any perfect square n2, the set {1,2,…,n2} can be partitioned into subsets where each subset is "nice". A set is "nice" if the number of elements in the set is equal to the average of its elements.
2. **Consider the set {1,2,…,n2}:**
- The sum of the first n2 positive integers is given by:
S=k=1∑n2k=2n2(n2+1)
3. **Partition the set into n subsets each of size n:**
- We can partition {1,2,…,n2} into n subsets, each containing n elements. Let's denote these subsets as A1,A2,…,An.
4. Calculate the sum and average of each subset:
- Each subset Ai will have n elements. The sum of the elements in each subset should be such that the average of the elements equals n, the number of elements in the subset.
5. Construct the subsets:
- One way to construct these subsets is to take consecutive blocks of n elements. For example:
A1={1,2,…,n},A2={n+1,n+2,…,2n},…,An={(n−1)n+1,(n−1)n+2,…,n2}
6. Verify the "nice" property:
- For each subset Ai, the sum of the elements is:
Sum(Ai)=k=(i−1)n+1∑ink
- The average of the elements in Ai is:
Average(Ai)=nSum(Ai)
- Since the elements in each subset are consecutive integers, the average of the elements in Ai will be the middle element of the subset, which is n. Therefore, each subset Ai is "nice".
7. Conclusion:
- Since we can partition {1,2,…,n2} into n subsets, each of which is "nice", any perfect square n2 is amazing.
■
### Part (b): Prove that there exist infinitely many positive integers which are not amazing.
1. **Consider numbers of the form n≡3(mod4):**
- We need to show that for some numbers n≡3(mod4), the set {1,2,…,n} cannot be partitioned into "nice" subsets.
2. **Properties of numbers n≡3(mod4):**
- Let n=4k+3 for some integer k. The sum of the first n positive integers is:
S=i=1∑ni=2n(n+1)
- For n=4k+3, this becomes:
S=2(4k+3)(4k+4)=(4k+3)(2k+2)=8k2+14k+6
3. Partitioning into "nice" subsets:
- Suppose we can partition {1,2,…,n} into subsets where each subset is "nice". Each subset must have an integer number of elements, and the average of the elements in each subset must also be an integer.
4. Contradiction:
- For n=4k+3, it is often not possible to partition the set into subsets where the number of elements equals the average of the elements. This is because the sum S and the number of elements n do not align in a way that allows for such partitions.
5. Conclusion:
- Therefore, there exist infinitely many positive integers n≡3(mod4) which are not amazing.
■