import sys input = sys.stdin.readline def make_divisors(n): lower_divisors , upper_divisors = [], [] i = 1 while i*i <= n: if n % i == 0: lower_divisors.append(i) if i != n // i: upper_divisors.append(n//i) i += 1 return lower_divisors + upper_divisors[::-1] #ルートNまでひたすら割っていく。奇数だけにしても良いか。 #100000 def factorization(n): arr = [] temp = n for i in range(2, int(-(-n**0.5//1))+1): if temp%i==0: cnt=0 while temp%i==0: cnt+=1 temp //= i arr.append([i, cnt]) if temp!=1: #最後に残ったもの(もしくは素数)の場合はここ arr.append([temp, 1]) if arr==[]: #1の場合はここ arr.append([n, 1]) return arr def cmb(n, r, p): if (r < 0) or (n < r): return 0 r = min(r, n - r) return fac[n]*finv[r]*finv[n-r]%p def perm(n,r,p): if (r < 0) or (n < r): return 0 return fac[n]*finv[n-r]%p N = 3*pow(10,6)+ 100 MOD = pow(10,9) + 7 fac = [-1]*(N+1); fac[0] = 1; fac[1] = 1 #階乗 finv = [-1]*(N+1); finv[0] = 1; finv[1] = 1 #階乗の逆元 inv = [-1]*(N+1); inv[0] = 0; inv[1] = 1 #逆元 for i in range(2,N+1): fac[i] = fac[i-1]*i%MOD inv[i] = MOD - inv[MOD%i]*(MOD//i)%MOD finv[i] = finv[i-1]*inv[i]%MOD def main(): n,k= map(int,input().split()); L = make_divisors(n) ans = 0 for x in L: if x == 1: ans += 1 continue PL = factorization(x) temp = 1 for val,cnt in PL: #cntをどう分けるか temp *= cmb(cnt+k-1,k-1,MOD) temp %= MOD ans += temp ans %= MOD print(ans) if __name__ == "__main__": main()