code: static MutableBigInteger modInverseBP2(MutableBigInteger mod, int k) {
          // Copy the mod to protect original
          return fixup(new MutableBigInteger(1), new MutableBigInteger(mod), k);
      }
docs: Calculate the multiplicative inverse of 2^k mod mod, where mod is odd.