retagged by
2,067 views
0 0 votes
what is the remainder when 4^250 is divided by 14

2^500 /14  = 2^499 / 7            Applying fermats theorem    2^6 mod 7 =1

(2^498 * 2 ) / 7  = remainder should be 2

is it correct???

1 Answer

Best answer
5 5 votes
$4^{250}\; mod\; 14$ is equivalent to $ 16^{125}\; mod\; 14$

And $16^{125} = (14 + 2)^{125}$

Every term in expansion of $(14+2)^{125}$ will contain $14$ as a factor other than last term $2^{125}$

So, Problem reduced to $2^{125} \;mod\;14$

Again, it can be rewritten as $2*16^{31} \;mod\;14$ which is equivalent to finding $2^{32} \;mod\;14$

$2^{32}\;mod\;14 = 16^8\;mod\;14 = (14+2)^8\;mod\;14$( Every term except $2^8$ contains a factor $14$.)

Problem reduces to $\color{maroon}{2^8\;mod\;14 = 256\;mod\;14 = 4}$
selected by
Position:
Show:

Related questions

8 8 votes
6 6 answers
3.9k
3.9k views
Arjun asked Feb 27, 2025
3,865 views
Suppose that insertion sort is applied to the array $[1,3,5,7,9,11, x, 15,13]$ and it takes exactly two swaps to sort the array. Select all possible values of $x$.$10$$12...
9 9 votes
5 answers 5 answers
8.9k
8.9k views
go_editor asked Sep 28, 2014
8,883 views
In the context of modular software design, which one of the following combinations is desirable?High cohesion and high couplingHigh cohesion and low couplingLow cohesion ...
32 32 votes
3 answers 3 answers
15.3k
15.3k views
gatecse asked Sep 21, 2014
15,277 views
Let $f(x)$ be the continuous probability density function of a random variable $x$, the probability that $a < x \leq b$, is :$f(b-a)$$f(b) - f(a)$$\int\limits_a^b f(x) dx...
3 3 votes
1 1 answer
540
540 views
Shubham Sharma 2 asked Sep 9, 2025
540 views
$\text{A}$ class $\text{B}$ network on the Internet has a subnet mask of $255.255.248.0$, what is the maximum number of hosts per subnet?$1022$$1023$$2046$$2047$