Thursday, 18 February 2016

elementary number theory - Find the remainder when 10400 is divided by 199?



I am trying to solve a problem



Find the remainder when the 10400 is divided by 199?




I tried it by breaking 10400 to 100013310 .



And when 1000 is divided by 199 remainder is 5.



So finally we have to find a remainder of :



513310



But from here I could not find anything so that it can be reduced to smaller numbers.




How can I achieve this?



Is there is any special defined way to solve this type of problem where denominator is a big prime number?



Thanks in advance.


Answer



You can use Fermat's little theorem. It states that if n is prime then an has the same remainder as a when divided by n.



So, 10400=102(10199)2. Since 10199 has remainder 10 when divided by 199, the remainder is therefore the same as the remainder of 104 when divided by 199. 104=10000=50199+50, so the remainder is 50.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...