edited by
17,866 views
44 votes
44 votes
The value of the expression $13^{99}\pmod{17}$ in the range $0$ to $16$, is ________.
edited by

10 Answers

Best answer
113 votes
113 votes

By Fermat's Little Theorem, if $p$ is prime, then

$a^{p-1} \equiv 1 \text{ mod } p$.

So, $13^{16} \equiv 1 \text{ mod } 17$.

And, $13^{96} = 13^{16 \times 6} \equiv 1 \text{ mod } 17$.

We are left with $13^{99} = 13^{96} \times 13^3 \equiv 13^3 \text{ mod } 17 \equiv 2197 \text{ mod } 17$ which is $4$.

edited by
72 votes
72 votes

The remainder cycle is $13, 16, 4, 1.$

$13^{99}\text{mod}\;17 = 13^3 \text{mod}\;17 = 4$

Note:

for remainder cycle ,$13\;\text{mod}\;17 = 13,\quad 13^2\;\text{mod}\;17 = 16,\quad 13^3\;\text{mod}\;17 = 4,\quad 13^4\;\text{mod}\;17 = 1$

19 votes
19 votes

There is an easy trick for this using calculator. Yes, Calculator will give wrong answer if you will directly calculate such a huge number.

How to use calculator for this ?
 13^99 =  (13 ^11) ^9 

So find reminder for    13^11.
(13 ^11) mod 17 =   4   ..     (Using Calculator)
now    reminder for (4 ^9) mod 17   = (Using Calculator) (ANS)
You can select any number to spilt it. Just make sure you are not using large numbers.

edited by
12 votes
12 votes

$\textbf{First Method:}$

$13^{99}$ mod $17 = ?$

Find the  Euler's totient function of $17$

If $'n'$ is prime number

$\phi(n)=n\left(1-\frac{1}{n}\right)$

$\phi(17)=17(1-\frac{1}{17})=16$

Find $99$ mod $16\equiv3$

Now find $13^{3}$ mod  $17\equiv2197$ mod $17\equiv4$

__________________________________________________

$\textbf{Second Method:}$

$\dfrac{13^{1}}{17}\implies \text{Remander} = 13$

$\dfrac{13^{2}}{17} \implies \text{Remander} = 16$

$\dfrac{13^{3}}{17}\implies \text{Remander}  = 4$

$\dfrac{13^{4}}{17}  \implies \text{Remander} = 1$

$\implies \dfrac{13^{99}}{17} = \dfrac{(13^{4})^{24}\times 13^{3}}{17} = \dfrac{1\times 13^{13}}{17} = \dfrac{13^{3}}{17}  \implies \text{Remander} = 4$

So, the correct answer is $4.$

edited by
Answer:

Related questions

50 votes
50 votes
4 answers
3
Akash Kanase asked Feb 12, 2016
17,804 views
The width of the physical address on a machine is $40$ bits. The width of the tag field in a $512$ KB $8$-way set associative cache is ________ bits.
56 votes
56 votes
1 answer
4
Akash Kanase asked Feb 12, 2016
11,112 views
Consider the following database table named water_schemes:$$\overset{\text{Water_schemes}}{\begin{array}{|c|c|c|}\hline\textbf{scheme_no}& \textbf{district_name}& \te...