HMMT 十一月 2023 · 冲刺赛 · 第 31 题
HMMT November 2023 — Guts Round — Problem 31
题目详情
英文原题
- [17] Let s ( n ) denote the sum of the digits (in base ten) of a positive integer n . Compute the number ofpositive integers n at most 10 that satisfy 4
s (11 n ) = 2 s ( n ) .
解析
英文解析
- [17] Let s ( n ) denote the sum of the digits (in base ten) of a positive integer n . Compute the numberof positive integers n at most 10 that satisfy 4
s (11 n ) = 2 s ( n ) .
Proposed by: Rishabh Das
Answer: 2530
Solution 1: Note 2 s ( n ) = s (10 n ) + s ( n ) = s (11 n ), so there cannot be any carries when adding n and
10 n . This is equivalent to saying no two consecutive digits of n sum to greater than 9.
4 4
We change the problem to nonnegative integers less than 10 (as both 0 and 10 satisfy the condition)
so that we simply consider 4-digit numbers, possibly with leading 0 s. Letting our number be abcd , we
′ ′ ′ ′
need a + b ≤ 9, b + c ≤ 9, and c + d ≤ 9. Letting b = 9 − b and d = 9 − d , this means a ≤ b ≥ c ≤ d .
′ ′
Summing over all possible values of b and d , we want
X10
x · min( x, y ) .
x,y =1
The sum over pairs ( x, y ) with x > y is
2 2 2 2 2
(1 + 2 + · · · + 10) − (1 + 2 + · · · + 10 ) 55 − 55 · 7 = = 55 · 24 .
2 2
The sum over pairs x ≤ y is
X10
2 2
k (11 − k ) = 11 · 55 · 7 − 55 = 55 · 22 .
k =1
The final answer is 55 · (24 + 22) = 55 · 46 = 2530.
Solution 2: Here is another way to calculate the sum. By doing casework on ( b, c ), the sum is
(10 − b )(10 − c )Xb + c ≤ 9
This is the coefficient of x of 9
X X22
(10 − 11 x )
n n
(10 − n ) x x =
(1 − x )5
n ≥ 0 n ≥ 0
n + 4X
2 n = (10 − 11 x ) xn ≥ 04
Thus, the answer is
13 12 11
100 − 220 + 121 = 2530
4 4 4