Quote:
Originally Posted by nikunj14_83 Ya i know Fermats theorm....but i am not getting how to apply in this ques ..so far i have applied in ques of the format like(A)^b/C where A,C are prime to eachother
Can u pls ellaborate how to apply in ques like this one(7777777......200times)/17?? |
17 is a prime number
if p is a prime number greater than 5 , then any number formed by writing consecutively (p-1) times the same number is exactly divisible by p
eg . 111111 % 7 = 0
22( up to 12 terms ) % 13 = 0
in our problem 17 is the prime number
777( up to 16 times ) is exactly divisible by 17
this means 777( up to 16 * 12 times ) is exactly divisible by 17
so we r left with 77777777 % 17
dividing directly , we get
6 as the remainder..
hope its clear..