Jack’s Bean
Jack has three plates in front of him. The giant has beans that he distributes to the three plates. All the beans look the same, but one of them is a magic bean. Jack doesn’t know which one it is, but the giant knows.
Jack can ask the giant questions of the form: “Does this subset of the beans contain the magic bean?” In each question Jack may choose any subset of beans from a single plate, and the giant will respond truthfully.
If the three plates contain , and beans respectively, we let be the minimal number of questions Jack needs to ask in order to guarantee he locates the magic bean. For example, and .
Let be the sum of over all triples of non-negative integers , , with .
You are given: and .
A repunit, , is a number made up with digits all ‘’. For example, and .
Find . Give your answer modulo .
杰克的魔法豆子
杰克面前有三个盘子,巨人将颗豆子分在三个盘子中。这些豆子看起来都一样,但其中有一颗是魔法豆子。杰克不知道哪一颗才是魔法豆子,但巨人知道。
杰克可以从任意一个盘子中选择任意一部分豆子,并向巨人提问:“在这些豆子中有魔法豆子吗?”巨人总是如实回答。
若三个盘子中分别由、、颗豆子,记为杰克能够保证找到魔法豆子最少需要提问的次数。例如,,。
记为所有满足的非负整数三元组、、对应的之和。
已知:,。
循环单位数是指由个数字组成的数。例如,,。
求,并将你的答案对取余。
Gitalking ...