include bits stdc using namespace std define int long long const int M

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <bits/stdc++.h>
using namespace std;
#define int long long
const int MOD = 1e9 + 7;
int n, t;
int dp[2010][2010];
class fastio {
public:
fastio() {
ios_base::sync_with_stdio(false);
cout.tie(nullptr);
cin.tie(nullptr);
}
} __fastio;
int f(int i, int t) {
if(t == 1) return 1;
if(dp[i][t] != -1) return dp[i][t];
int ans = 0;
for(int k=i; k<=n; k+=i) {
ans += (f(k, t-1) % MOD);
}
return dp[i][t] = (ans % MOD);
}
void solve() {
cin >> n >> t;
int ans = 0;
memset(dp, -1, sizeof (dp));
for(int i=1; i<=n; i++) ans += (f(i,t) % MOD);
cout << ans << endl;
}
signed main() {
__fastio;
solve();
return 0;
}