use std::collections::HashMap; const MOD: usize = 1e9 as usize + 7; fn power(base: usize, times: usize) -> usize { if times == 0 { return 1usize; } if times == 1 { return base; } let temp = power(base, times/2); temp * temp % MOD * power(base, times%2) % MOD } fn main() { let mut nk = String::new(); std::io::stdin().read_line(&mut nk).ok(); let nk: Vec = nk.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); let n = nk[0]; let k = nk[1]; let mut mapping = HashMap::new(); let mut target = n; for i in 2..=(n as f64).sqrt().floor() as usize { while target % i == 0 { target /= i; *mapping.entry(i).or_insert(0usize) += 1; } } if target > 1 { mapping.insert(target, 1); } let mut result = 1usize; for &cnt in mapping.values() { result *= (k+1..=k+cnt).fold(1usize, |x, y| x % MOD * (y % MOD) % MOD) * power((1..=cnt).fold(1usize, |x, y| x*y%MOD), MOD-2) % MOD; result %= MOD; } println!("{}", result); }