#P4714. 「数学」约数个数和
「数学」约数个数和
Description
Little F is chatting with classmates in math class.
Given a positive integer, compute the number of its divisors.
“You guys in competitions just study this? Too easy.”
“...”
Given a positive integer, compute the sum of the number of divisors of all its divisors.
“Let me think... Hmm, still not hard. Hey, can you still sign up for your competitions?”
“...”
Given a positive integer, compute the sum of the number of divisors of all the divisors of all its divisors.
“Anyway your computers can always brute-force it, right? Hurry up and tell me where to sign up.”
“...”
Given a positive integer, compute the sum of the number of divisors of all the divisors of all the divisors of all its divisors.
“Will this ever end?”
“...”
Mocked, Little F hands this problem to you. Please show your brute-forcing power.
Given a positive integer , compute the sum of divisor counts over the multiset obtained by applying the operation “take all divisors” to exactly times.
The answer may be large; output it modulo .
Input Format
One line with two integers $N, K(1 \leq N \leq 10 ^ {18}, 0 \leq K \leq 10^{18})$.
Output Format
Output a single non-negative integer: the required answer modulo .
4 0
3
4 1
6
4 2
10
Hint
Explanations for Samples 1, 2, 3
的约数
的所有约数的约数
的所有约数的所有约数的约数
Subtasks
子任务
子任务
子任务
子任务 $4(67 \mathrm{pts}) : 1 \leq N \leq 10 ^ {18}, 0 \leq K \leq 10^{18}$。
Translated by ChatGPT 5
京公网安备 11011102002149号