Saving Paper
When wrapping several cubes in paper, it is more efficient to wrap them all together than to wrap each one individually. For example, with cubes of unit edge length, it would take units of paper to wrap them in the arrangement shown below, but units to wrap them separately.

Define to be the maximum amount of paper that can be saved by wrapping identical cubes in a compact arrangement, compared with wrapping them individually. We insist that the wrapping paper is in contact with the cubes at all points, without leaving a void.
With cubes, the arrangement illustrated above is optimal, so . With cubes, it can be shown that the optimal arrangement is as a , using units of paper, whereas wrapping individually would use units of paper; hence .
Define
You are given that , and .
Find . Give your answer modulo .
节约用纸
在包装多个立方体时,将它们放在一起包装比起分别包装更省纸张。例如,如果有个单位边长的立方体,按照如下方式堆叠后只需要单位面积的包装纸,而将它们分别包装则需要单位面积的包装纸。

记为包装个大小的立方体时,采用最紧凑的方式包装相比分别包装最多能省下多少单位面积的包装纸。我们要求包装纸必须和立方体紧密贴合,不能留出空隙。
包装个立方体时,如上所示的包装方式是最优的,因此。包装个立方体时,可以证明最优的包装方式是将其堆叠为大小,此时需要单位面积的包装纸,而分别包装则需要单位面积的包装纸,因此。
进一步定义
已知,。
求,并将你的答案对取余。
Gitalking ...