Modulo Arithmetic & Remainder Theory
Eulers Theorem If M and N are two numbers co-prime to each other ,i.e. HCF(M,N) =1 and N = [Link] , Remainder [M(N)]/ N= 1where ( ) ( )( )( ) and is known as Eulers totient function .(N) is also the number of numbers less than and prime to N
[Link] the remainder when 537 is divided by 63 Sol: 5 and 63 are co-prime to each other, therefore we can apply Eulers theorem 63= 7 * 32 z(63)=63(1-1/7)(1-1/3) 18 Therefore, Remainder [518]/63 =1 Remainder [536]/63 =1 Remainder [536] *5/63 = 5 [Link] the last three digits of 57802 Sol: To solve this type of question divide the no by 1000 1000= 53 *23 z(1000)1000(1-1/2)(1-1/5)400 Remainder 57400 /1000 =1 Remainder 57800 * 572 /1000 =549
Fermats Little Theorem If N is prime no in the above Eulers theorem ,( ) ( ) =N-1 , If M and N are two numbers co-prime to each other and N is the prime no.,Remainder [MN-1]/ N= 1
[Link] remainder 5260/31 Sol: 31 is prime no. Therefore , 5230/31=15260/31=1 Wilsons Theorem If p is a prime no .then Remainder [(p-1)!+1]/p =0 In other word (p-1)! +1 is divisible by p if p is a prime no. It also means that the remainder when (p-1)! Is divided by p is p-1where p is prime Q. Remainder 40!/41 Sol: Remainder 40!/41=41-1= 40