#P1255. Special Week With Factors

Special Week With Factors

题目描述

Now, Special Week are doing some problems with factors. And here comes one problem difficult to her, which she needs you to help her solve it out.

The problem is:

Given you two positive integers nn and mm find the number of different cases which satisfies the condition: f1 imesf2 imesf3 imes... imesfm=nf_1 \ imes f_2 \ imes f_3 \ imes ... \ imes f_m=n where fif_i is any positive integer. For example, if n=4n=4 and m=3m=3 we can find 66 cases to satisfy the cases which is listed below:

1 imes1 imes11 \ imes 1 \ imes 1

1 imes1 imes41 \ imes 1 \ imes 4

1 imes4 imes11 \ imes 4 \ imes 1

4 imes1 imes14 \ imes 1 \ imes 1

2 imes2 imes12 \ imes 2 \ imes 1

2 imes1 imes22 \ imes 1 \ imes 2

1 imes2 imes21 \ imes 2 \ imes 2

输入格式

One line with two positive integers n,m(1lenle1016,1lemle4)n,m (1\\le n\\le 10^{16},1\\le m\\le 4).

输出格式

One positive integer the answer.

样例

2021041820210418 3
2430
2021041820210418 4
20480
4444444444444444 4
40960