title: incompatible types: BigInteger cannot be converted to int
body: <p>I am trying to run this code but I am getting error which I am unable resolve. Please help.</p>
  
  <pre><code>import java.util.Scanner;
  import java.math.BigInteger;
  class Cseq
  {
      public static void main(String []args)
      {
          Scanner jais=new Scanner(System.in);
          int x=100000;
          BigInteger i;
          BigInteger []a = new BigInteger[x];
          a[0]=BigInteger.ONE;
          for(i=BigInteger.ONE;i.compareTo(BigInteger.valueOf(x))&lt;=0;i=i.add(BigInteger.ONE))
          {
              a[i]=a[(i.subtract(BigInteger.ONE))].multiply(i);
          }
          int t=jais.nextInt();
          while(t--!=0)
          {
          BigInteger n=jais.nextBigInteger();
          BigInteger p=jais.nextBigInteger();
          BigInteger q=jais.nextBigInteger();
          BigInteger v=(q.subtract(p)).add(BigInteger.ONE);
          BigInteger j;
          BigInteger sum=BigInteger.ZERO;
          for(j=BigInteger.ONE;j.compareTo(n)&lt;=0;j=j.add(BigInteger.ONE))
          {
              sum=sum.add(a[v].divide(a[(v.subtract(j))].multiply(a[j])));
              sum=sum.add(v);
          }
          sum=sum.subtract(v);
          System.out.println(sum);
          }
          jais.close();
      }
  }
  </code></pre>