#include<bits/stdc++.h>
using namespace std;
int tiling(int n,int m)
{
if(n<=m-1)
return 0;
return tiling(n,m)+tiling(n-m,m)+1;
}
int main()
{
int t;
cin>>t;
while(t–)
{
int n,m;
cin>>n>>m;
int res=tiling(n,m);
int a=pow(10,9)+7;
res=res%a;
cout<<res<<"\n";
}
return 0;
}
why this code is not giving correct answer