Question 71
HardWhat is the modular inverse of 3 modulo 11?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Data Structures and Algorithms
What is the modular inverse of 3 modulo 11?
3
4
9
7
Sign up free to see the answer and a step-by-step explanation.
Why is 10⁹ + 7 popular as a modulus in programming problems?
It makes answers smaller than 100
It is even
It is a large prime that fits in 32 bits, and products of two residues fit in 64 bits
It is a power of 10
Sign up free to see the answer and a step-by-step explanation.
Which test quickly checks primality of a large number with a small chance of error?
Miller–Rabin
Trial division up to n
Euclid's algorithm
The sieve of Eratosthenes up to n
Sign up free to see the answer and a step-by-step explanation.
How many numbers below 1,000 are coprime to 1,000?
500
600
400
250
Sign up free to see the answer and a step-by-step explanation.
What is the last digit of 7²⁰²⁵?
1
7
9
3
Sign up free to see the answer and a step-by-step explanation.
How many lattice paths from (0, 0) to (6, 4) use only steps right and up?
1024
120
210
24
Sign up free to see the answer and a step-by-step explanation.
What is the sum of the GCDs gcd(12, k) for k = 1 to 12?
78
36
40
28
Sign up free to see the answer and a step-by-step explanation.
Fast exponentiation computes aᵇ mod m with how many multiplications, roughly?
b
√b
About 2 log₂ b
log₁₀ b
Sign up free to see the answer and a step-by-step explanation.
Which identity lets you compute C(n, r) mod a prime p when n is huge but p is small?
Lucas's theorem
Fermat's last theorem
Wilson's theorem
The binomial theorem
Sign up free to see the answer and a step-by-step explanation.
What does Wilson's theorem state?
Every even number is a sum of two primes
aᵖ ≡ a (mod p)
There are infinitely many primes
(p − 1)! ≡ −1 (mod p) exactly when p is prime
Sign up free to see the answer and a step-by-step explanation.