N,K=map(int,input().split()) c=dict() c[K]=1 ans=0 for i in range(1,N+1): c2=dict() for j in c: s=j//i if s==0: continue else: if s in c2: c2[s]+=c[j] else: c2[s]=c[j] for j in c2: if j in c: c[j]+=c2[j] else: c[j]=c2[j] for i in c: ans+=c[i] ans-=1 print(ans)