#include<stdio.h>

#define M 1000003

int main(){

```
int t=0;
long long int sum=0,L,R,N,init=0,i=0,Len=0;
scanf("%d",&t);
while(t-- > 0){
scanf("%lld%lld%lld",&N,&L,&R);
Len=R-L+1;
if(R==L){
printf("%lld\n",N%M);
}
else{
init=Len%M;
sum=init;
if(N>Len)
N=Len%M;
for(i=2;i<=N;i++){
init=((((init%M)*(((Len%M)+(i%M)-(1%M))%M))%M)/(i%M))%M;
//printf("%lld",init);
sum=(sum%M+init%M)%M;
}
printf("%lld\n",sum);
sum=0;
}
}
//getch();
return 0;
```

}

I HAVE USED THE FORMULA (R-L+r,r) where 1<=r<=N.

I have broken the the aboe using (n+1,k)=(n,k)+(n,k-1);

WHAT wrong In My code??