Skip to content
Embercode
✕
CombinatoricsQuick quiz

Recurrences, NTT and expectation

8 questions. Covers Probability and expected value in contests.

Questions 1 to 5 of 8

  1. 1. An AI tool says that raising a 10 by 10 matrix to the power 10^18 takes about 10^18 steps, one per unit of the exponent. Using the method in this module, what is the right estimate?
  2. 2. Which statements about the matrix exponentiation in this module are true? Select all that apply.

    Pick every answer that is true.

  3. 3. The NTT modulus is p = 998244353. What is the largest power of two that divides p - 1 = 998244352? Enter the number.

    Type a number.

  4. 4. An AI tool wrote an NTT for length 2^19 with the modulus 1000000007, because many snippets online use it. Which fact shows that this cannot work?
  5. 5. Put the steps of multiplying two polynomials with the NTT in the order they run.

    Use the arrows to put the steps in order.

    1. 1.Run the forward NTT on both arrays
    2. 2.Run the inverse NTT on the product
    3. 3.Multiply every value by the inverse of the length
    4. 4.Pad both arrays to a power-of-two length of at least a + b - 1
    5. 5.Multiply the two transforms value by value

4 question(s) left on this page.

Typed answers ignore extra spaces and, for most questions, capital letters.