Question 41
MediumWhat is 7⁻¹ modulo 13 (the modular inverse)?
- 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 7⁻¹ modulo 13 (the modular inverse)?
11
2
6
7
Sign up free to see the answer and a step-by-step explanation.
What is Euler's totient φ(36)?
6
24
18
12
Sign up free to see the answer and a step-by-step explanation.
What is the time complexity of fast (binary) exponentiation for aᵇ?
O(b)
O(b log b)
O(√b)
O(log b)
Sign up free to see the answer and a step-by-step explanation.
What is the sum of the divisors of 28?
28
29
42
56
Sign up free to see the answer and a step-by-step explanation.
How many integers from 1 to 100 are divisible by 3 or 5?
53
47
33
40
Sign up free to see the answer and a step-by-step explanation.
What is C(10, 3) modulo 7?
6
0
1
3
Sign up free to see the answer and a step-by-step explanation.
What is 2¹⁰ mod 1000?
10
24
240
1024
Sign up free to see the answer and a step-by-step explanation.
Why is (a − b) mod m computed as ((a − b) % m + m) % m in C++ or Java?
It avoids overflow
It isn't needed
It is faster
% can give a negative result for negative numbers in those languages
Sign up free to see the answer and a step-by-step explanation.
What is the GCD of two consecutive Fibonacci numbers?
2
1
It depends
The smaller number
Sign up free to see the answer and a step-by-step explanation.
How many digits does 2¹⁰⁰ have? (log₁₀ 2 ≈ 0.30103)
30
31
33
100
Sign up free to see the answer and a step-by-step explanation.