HMMT 二月 2021 · 冲刺赛 · 第 21 题
HMMT February 2021 — Guts Round — Problem 21
题目详情
英文原题
- [14] Bob knows that Alice has 2021 secret positive integers x , . . . , x that are pairwise relatively prime.
1 2021
Bob would like to figure out Alice’s integers. He is allowed to choose a set S ⊆ { 1 , 2 , . . . , 2021 } and askher for the product of x over i ∈ S . Alice must answer each of Bob’s queries truthfully, and Bob may use
Alice’s previous answers to decide his next query. Compute the minimum number of queries Bob needsito guarantee that he can figure out each of Alice’s integers.
解析
英文解析
- [14] Bob knows that Alice has 2021 secret positive integers x , . . . , x that are pairwise relatively
1 2021
prime. Bob would like to figure out Alice’s integers. He is allowed to choose a set S ⊆ { 1 , 2 , . . . , 2021 }
and ask her for the product of x over i ∈ S . Alice must answer each of Bob’s queries truthfully, andi
Bob may use Alice’s previous answers to decide his next query. Compute the minimum number ofqueries Bob needs to guarantee that he can figure out each of Alice’s integers.
Proposed by: David Vulakh
Answer: 11
Solution: In general, Bob can find the values of all n integers asking only b log n c + 1 queries.
For each of Alice’s numbers x , let Q be the set of queries S such that i ∈ S . Notice that all Q must 2
i i ibe nonempty and distinct. If there exists an empty Q , Bob has asked no queries that include x andi ihas no information about its value. If there exist i, j, i 6 = j such that Q = Q , x and x could bei j i jinterchanged without the answer to any query changing, so there does not exist a unique sequence ofnumbers described by the answers to Bob’s queries (Alice can make her numbers distinct).
From the above, b log n c + 1 is a lower bound on the number of queries, because the number of distinctn 2
nonempty subsets of { 1 , . . . , n } is 2 − 1.
If Bob asks any set of queries such that all Q are nonempty and disjoint, he can uniquely determinei
Alice’s numbers. In particular, since the values x , . . . , x are relatively prime, each prime factor
1 2021
of x occurs in the answer to query S iff j ∈ Q ( i ) (and that prime factor will occur in each answeri jexactly to the power with which it appears in the factorization of x ). Since all Q ( i ) are unique, all xi ican therefore be uniquely recovered by computing the product of the prime powers that occur exactlyin the answers to queries Q ( i ).
It is possible for Bob to ask b log n c + 1 queries so that each i is contained in a unique nonempty subseti − 12
of them. One possible construction is to include the index i in the j th query iff the 2 -value bit isset in the binary representation of j . So the answer is b log 2021 c + 1 = 11. 2