Question
The value of the expression , in the range 0 to 16, is ________.
Official answer and solution
- Official answer
- 4
- From
- Official GATE 2016 answer key
Solution
Apply Fermat's Little Theorem to reduce the power modulo the prime 17.
We want to evaluate . Since 17 is a prime number and , by Fermat's Little Theorem:
Express the exponent 99 in terms of multiples of 16:
Using the properties of modular arithmetic:
Compute using negative residue representation ():
Divide by 17:
Thus:
Therefore, .
4
Reducing the exponent modulo 17 instead of modulo .
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2016 Computer Science and Information Technology (CS) Session 2
- Question
- 39 of 65, printed as CS Q.29
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.