• + 1 comment

    what does the following part of the code do; int coef = (MOD - mul(B, modPow(A, MOD - 2))) % MOD; pw[0] = 1; for (int i = 1; i <= T; i++) pw[i] = mul(pw[i - 1], coef);