Problem 890 题目发布于 2024-05-11 翻译更新于 2024-11-26 Problem 890 Binary PartitionsLet p(n) be the number of ways to write n as the sum of powers of two, ignoring order. For example, p(7)=6, the partitions being7=1+1+1+1+1+1+1=1+1+1+1+1+2=1+1+1+2+2=1+1+1+4=1+2+2+2=1+2+4You are also given p(77)≡144548435(mod109+7). Find p(7777). Give your answer modulo 109+7. 二进制分拆记p(n)为将n写成二的幂之和的方法数,不计顺序。 例如,p(7)=6,对应的分拆包括:7=1+1+1+1+1+1+1=1+1+1+1+1+2=1+1+1+2+2=1+1+1+4=1+2+2+2=1+2+4已知p(77)≡144548435(mod109+7)。 求p(7777),并对109+7取余作为你的答案。
Gitalking ...