title: How to use operators for BigInteger
body: <pre><code>import java.lang.Math;
  import java.math.BigInteger;
  import java.math.BigDecimal;
  
  public class Main {
      public static void main(String[] args) {
          int e1 = 20, d = 13;
          BigInteger C = BigDecimal.valueOf(e1).toBigInteger();
  
          BigInteger po = C.pow(d);
          System.out.println("pow is:" + po);
  
          int num = 11;
          BigInteger x = po;
          BigInteger n = BigDecimal.valueOf(num).toBigInteger();
          BigInteger p, q, m;
  
          System.out.println("x: " + x);
  
          q=(x / n);
          p=(q * n);
          m=(x - p);
          System.out.println("mod is:" + m);
      }
  }
  </code></pre>
  
  <p>I've tried looking for some answers related to it but unable to solve. Please can someone tell me what's wrong in this. I changed the datatype to integer but then the power function doesn't works.</p>
  
  <p>this is the error which I get:</p>
  
  <pre><code>error: bad operand types for binary operator '/'
      q=(x/n);
          ^
    first type:  BigInteger
    second type: BigInteger
  Main.java:33: error: bad operand types for binary operator '*'
      p=(q*n);
          ^
    first type:  BigInteger
    second type: BigInteger
  Main.java:34: error: bad operand types for binary operator '-'
      m=(x-p);
          ^
    first type:  BigInteger
    second type: BigInteger
  3 errors
  
      .
  </code></pre>