PUMaC 2007 · 代数(B 组) · 第 2 题
PUMaC 2007 — Algebra (Division B) — Problem 2
题目详情
Hugo、Evo 和 Fidel 在玩龙与地下城,需要很多二十面骰。Hugo 掷了25个二十面骰,总和只有70。Fidel 安慰他说,在这个总和下,掷出的数字乘积已经是最大可能值了。Hugo 掷出了多少个2?
英文原题
- Hugo, Evo, and Fidel are playing Dungeons and Dragons, which requires many twenty-sided dice.
Attempting to slay Evo’s vicious hobgoblin +1 of viciousness, Hugo rolls 25 20-sided dice, obtaining
a sum of (alas!) only 70. Trying to console him, Fidel notes that, given that sum, the product of
the numbers rolled was as large as possible. How many 2s did Hugo roll?
解析
设 25 次掷骰结果为正整数,和为 。在正整数个数和总和固定时,乘积在各数尽量接近时最大。
因为
所以最大乘积时所有点数应只可能是 和 。设有 个 ,则有 个 ,于是
即
所以 。因此 Hugo 掷出了
个 。
英文解析
Let the 25 rolls be positive integers with sum . For a fixed sum and fixed number of positive integer factors, the product is maximized when the factors are as equal as possible.
Since
the maximizing rolls should be only 's and 's. If there are twos and threes, then
Thus
so . Therefore Hugo rolled
twos.