AlgebraDifficulty 5.9AIME, harderProve itUnited States
Problem: Given a positive integer k, let ∥k∥ denote the absolute difference between k and the nearest perfect square. For example, ∥13∥=3 since the nearest perfect square to 13 is 16. Compute the smallest positive integer n such that n∥1∥+∥2∥+⋯+∥n∥=100. Proposed by: Carl Schildkraut
Solution
Solution: Note that from n=m2 to n=(m+1)2, ∥n∥ increases from 0 to a peak of m (which is repeated twice), and then goes back down to 0. Therefore n=1∑m2∥n∥=k=1∑m−12(1+2+⋯+k)=k=1∑m−12(2k+1)=2(3m+1)=3m(m2−1) In particular, if n=m2−1, n∥1∥+∥2∥+⋯+∥n∥=3m, so n=3002−1 satisfies the condition. However, this does not prove that there are not smaller solutions for n. Let N=3002−1 and suppose that N−k satisfies the condition. Then, we know that k∥N∥+∥N−1∥+⋯+∥N−(k−1)∥=100. Since ∥N−k∥=k+1 for k≤298, one can show that k=199 works. By looking at further terms, one can convince oneself that no larger value of k works. Thus, the answer is 3002−1−199=90000−200=89800.
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.
Source: MathNet,
licensed CC-BY-4.0.
Statement reproduced verbatim; metadata (topic, difficulty) added by this project.