HMMT 二月 2022 · ALGNT 赛 · 第 5 题
HMMT February 2022 — ALGNT Round — Problem 5
题目详情
英文原题
- Given a positive integer k , let ∥ k ∥ denote the absolute difference between k and the nearest perfectsquare. For example, ∥ 13 ∥ = 3 since the nearest perfect square to 13 is 16. Compute the smallestpositive integer n such that
∥ 1 ∥ + ∥ 2 ∥ + · · · + ∥ n ∥
= 100 . n
解析
英文解析
- Given a positive integer k , let ∥ k ∥ denote the absolute difference between k and the nearest perfectsquare. For example, ∥ 13 ∥ = 3 since the nearest perfect square to 13 is 16. Compute the smallestpositive integer n such that
∥ 1 ∥ + ∥ 2 ∥ + · · · + ∥ n ∥
= 100 .
Proposed by: Carl Schildkrautn
Answer: 89800
2 2
Solution: Note that from n = m to n = ( m + 1) , ∥ n ∥ increases from 0 to a peak of m (which isrepeated twice), and then goes back down to 0. Thereforem m − 1 m − 12
X X Xk + 1 m + 1 m
∥ n ∥ = 2(1 + 2 + · · · + k ) = 2 = 2 = ( m − 1) .2
2 3 3
n =1
k =1 k =1
In particular, if n = m − 1,2
∥ 1 ∥ + ∥ 2 ∥ + · · · + ∥ n ∥ m = ,
n 3
so n = 300 − 1 satisfies the condition. However, this does not prove that there are not smaller solutions 2
for n .
Let N = 300 − 1 and suppose that N − k satisfies the condition. Then, we know that 2
∥ 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, onekcan convince oneself that no larger value of k works. Thus, the answer is 300 − 1 − 199 = 90000 − 200 =2