#include <bits/stdc++.h>
#define N 32768
#define F for(i=0;++i<N;)
long long M=0x3B9ACA07LL,a[N]={},b[N],c[N]={},n,k,i;
int main(){std::cin>>n>>k;F a[i]=i<n?i:n,b[i]=n/i;while(--k){F c[i]=c[i-1]+b[i];b[N-1]=c[n/(N-1)];for(i=N-2;i>0;i--)b[i]=(b[i+1]+a[i]*(n/i-n/(i+1)))%M;std::swap(a,c);}std::cout<<b[1];}
