Piles of Plates
We stack plates into non-empty piles where each pile is a different size. Define to be the maximum number of plates possible in the smallest pile. For example when and the piles is the best that can be done and so . It is impossible to divide into non-empty differently-sized piles and hence .
Define to be the sum of for all possible pile sizes . For example .
Further define . You are given .
Find giving your answer modulo .
盘子分堆
将个盘子分为堆,每一堆既不能为空,也不能与另一堆有相同数量的盘子,并记为所有分法中最少的那堆可能分得的最大盘子数量。例如,若,,那么最理想的分法是,因此。由于无法将个盘子按照上述要求分为堆,因此。
记为所有堆数的之和。例如,。
再记。已知。
求并将你的答案对取余。
Gitalking ...