#P4714. 「数学」约数个数和

    ID: 3408 远端评测题 1000ms 512MiB 尝试: 0 已通过: 0 难度: 8 上传者: 标签>递推洛谷原创素数判断,质数,筛法前缀和洛谷月赛

「数学」约数个数和

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 NN, compute the sum of divisor counts over the multiset obtained by applying the operation “take all divisors” to NN exactly KK times.

The answer may be large; output it modulo 998244353998244353.

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 998244353998244353.

4 0
3
4 1
6
4 2
10

Hint

Explanations for Samples 1, 2, 3

4, 0:4,\ 0: 44 的约数  1 2 4\ 1\ 2\ 4

4, 1:4,\ 1: 44 的所有约数的约数  (1) (1 2) (1 2 4)\ (1)\ (1\ 2)\ (1\ 2\ 4)

4, 2:4,\ 2: 44 的所有约数的所有约数的约数 ((1)) ((1) (1 2)) ((1) (1 2) (1 2 4))((1))\ ((1)\ (1\ 2))\ ((1)\ (1\ 2)\ (1\ 2\ 4))

Subtasks

子任务 1(11pts):N,K1041(11 \mathrm{pts}) : N, K \leq 10 ^ 4

子任务 2(31pts):N1042(31 \mathrm{pts}) : N \leq 10 ^ 4

子任务 3(41pts):N1093(41 \mathrm{pts}) : N \leq 10 ^ 9

子任务 $4(67 \mathrm{pts}) : 1 \leq N \leq 10 ^ {18}, 0 \leq K \leq 10^{18}$。

Translated by ChatGPT 5