Under construction

Still being built. Things may change

Divisors

Time limit2sMemory limit512 MB

Summary
Count increasing sequences of k divisors of n where each adjacent pair is coprime and the product of all k numbers is at most n.
Level

Medium7 of 10

Topics
Dynamic programming, Number theory, Backtracking
Solved
No attempts yet

Problem

A natural number aa is a divisor of a natural number bb if b=acb = ac for some natural number cc. For example, the divisors of 6 are 1, 2, 3, and 6. Two numbers are called coprime if they have no common divisor other than 1. For example, 16 and 27 are coprime, while 18 and 24 are not.

A set of kk numbers (a1,a2,…,ak)(a_1, a_2, \dots, a_k) is called normal if all of the following conditions hold:

  1. Each aia_i is a divisor of nn.
  2. a1<a2<⋯<aka_1 < a_2 < \dots < a_k.
  3. For every ii from 1 to k−1k-1, aia_i and ai+1a_{i+1} are coprime.
  4. The product a1a2⋯aka_1 a_2 \cdots a_k does not exceed nn.

For example, (2,9,10)(2, 9, 10) is a normal set of 3 divisors of 360.

Given nn and kk, count the normal sets of kk divisors of nn.

Input

The first line contains two integers nn and kk (2≤n≤1082 \le n \le 10^8, 2≤k≤102 \le k \le 10).

Output

Print one integer: the number of normal sets of kk divisors of nn.

Examples2

  1. Example 1

    Input
    90 3
    
    Expected output
    16
    
  2. Example 2

    Input
    10 2
    
    Expected output
    4