HMMT 二月 2021 · ALGNT 赛 · 第 6 题
HMMT February 2021 — ALGNT Round — Problem 6
题目详情
英文原题
- Suppose that m and n are positive integers with m < n such that the interval [ m, n ) contains moremultiples of 2021 than multiples of 2000. Compute the maximum possible value of n − m .
解析
英文解析
- Suppose that m and n are positive integers with m < n such that the interval [ m, n ) contains moremultiples of 2021 than multiples of 2000. Compute the maximum possible value of n − m .
Proposed by: Carl Schildkraut
Answer: 191999
Solution: Let a = 2021 and b = 2000. It is clear that we may increase y − x unless both x − 1 andy + 1 are multiples of b , so we may assume that our interval is of length b ( k + 1) − 1, where there arek multiples of b in our interval. There are at least k + 1 multiples of a , and so it is of length at leastak + 1. We thus have that
⌊ ⌋
b − 2
ak + 1 ≤ b ( k + 1) − 1 = ⇒ ( a − b ) k ≤ b − 2 = ⇒ k ≤ .
a − b
So, the highest possible value of k is 95, and this is achievable by the Chinese remainder theorem,
giving us an answer of 191999.