#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; using Pll = pair; using Pii = pair; constexpr ll MOD = 1000000007; constexpr long double EPS = 1e-10; constexpr int dyx[4][2] = { { 0, 1}, {-1, 0}, {0,-1}, {1, 0} }; int not_prime[1000001]; map factorize(ll n){ map ret; ll i = 2; not_prime[2] = 0; fill(not_prime, not_prime+1000001, 0); while(n != 1 && i <= 1000000){ if(not_prime[i]){ ++i; continue; } ll j = i; while(j <= 1000000){ not_prime[j] = 1; j += i; } while(n % i == 0){ n /= i; ++ret[i]; } ++i; } if(n != 1LL){ ++ret[n]; } return ret; } int main() { std::ios::sync_with_stdio(0); cin.tie(0); ll n,k,m; cin >> n >> k >> m; map mp = factorize(n); vector divisors(1, 1); for(auto itr=mp.begin();itr!=mp.end();++itr) { ll f = itr->first; ll nf = (itr->second) * k; int nd = divisors.size(); for(int i=0;i m) break; divisors.push_back(d); } } } cout << divisors.size() << endl; }