1403. A Boring Math Problem

Define function f(n) as the sum of all factors of n, for example f(1) = 1,f(5) = 1 + 5 = 6,f(6) = 1 + 2 + 3 + 6 = 12.

Given n and k, you need to calculate

\sum_{i=1}^n f(i^k)

Since the answer is too large, you need to output the remainder of the answer divided by 10^9+ 7.

输入

One line, two numbers n and k, (1≤n, k≤10^7)

输出

One line indicates the answer.

样例

标准输入 复制文本
2 2
标准输出 复制文本
8

提示

f(1^2) +f(2^2) = (1) + (1 + 2 + 4) = 8

来源

SCNUCPC 2020 现场赛

登录以提交代码。
单点时限 1 秒
内存限制 256 MB
提交 84
通过 13