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??? Quantitative Aptitude computer-networks easy + – bad_engineer 2.1k views answer comment Share Follow Print See all 4 Comments 4 4 Comments reply Rahul Jain25 commented Jan 31, 2017 reply Follow flag Yes seems correct. 0 0 replyShare bad_engineer commented Jan 31, 2017 reply Follow flag but answer is given as 4 :( 0 0 replyShare mcjoshi commented Jan 31, 2017 reply Follow flag 2^500 /14 = 2^499 / 7 This step is wrong. 1024 mod 14 = 2, but 512 mod 7 = 1 And yes $4$ seems correct to me. 1 1 replyShare bad_engineer commented Jan 31, 2017 reply Follow flag yup my bad, it is mod we dont cancel in case mod 0 0 replyShare Please log in or register to add a comment.
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}$ mcjoshi answered Jan 31, 2017 • selected Jan 31, 2017 by bad_engineer mcjoshi comment Share Follow See all 11 Comments 11 11 Comments reply Show 8 previous comments mcjoshi commented Feb 24, 2017 reply Follow flag Yes. Every other terms contains atleast $1$ factor as $14$ 1 1 replyShare Devshree Dubey commented Feb 24, 2017 reply Follow flag @mcjoshi, it is binomial?? Isn't it? 0 0 replyShare mcjoshi commented Feb 24, 2017 reply Follow flag Yes, it is binomial. 0 0 replyShare Please log in or register to add a comment.