air open

Sunday, 7 August 2011

Rare Numbers


                   "The numbers, which gives a perfect square on adding as well as subtracting its reverse are rare and hence termed as Rare Numbers."


                             If "X" is a positive integer and "Xrev" is the integer obtained from X by writing its decimal digits in reverse order, then if X + Xrev and X - Xrev both are perfect squares then X is termed as Rare Number.
                             Shyam Sunder Gupta (from INDIA) have been investigating these numbers since 1989. He has developed computer program in Fortran to compute Rare numbers.


Examples : 65 and 621770






What will be the remainder when 101th power of 4 is divided by 101 ?

What will be the remainder 4101 is divided by 101 ?
A. 1
B. 2
C. 3
D. 4



Solution : 


Ist Method :

From Binomial Theorem
4101  = (1 + 3)101 101C0 + 101C13 + 101C232 + 101C333 + ............+101C1013101
                      4101  = 1 + 101C13 + 101C232 + 101C333 + .....................+3101                              
      we know nCr is always an integer and each term conatins a multiple of 101 except 1st and last one.
so   4101 when divided by 101 gives the same remainder what 1 + 3101 divided by 101 will give.



Now,
1 + 3101 = 1 + (1 + 2)101 = 1 + 101C0 + 101C12 + 101C222 + 101C323 + ............+101C1012101
                            1 + 3101 = 1 + 1 + 101C12 + 101C222 + 101C323 + ............+2101




As every term conatins a multiple of 101 except 1st and last one.so 1 + 3101 when divided by 101 will give the same remainder what 1 + 1 + 2101 will give.


2 + 2101 = 2 + (1 + 1)101 = 2 + 101C0 + 101C1 + 101C2 + 101C3 + ............+101C101
                                            = 2 + 1 + 101C1 + 101C2 + 101C3 + ............ + 1
                                            = 4 + 101C1 + 101C2 + 101C3 + ............


This when divided by 101 will give 4 as the remainder
as every other term contains 101.

Ans = 4



2nd Method :

From Fermat's Little theorem, we know the following result
                         If a is an integer and p is a prime number, then ap - a is divisible by p

          Here a = 4 (an integer)
          p = 101 (a  prime number)

Hence according to theorem , 4101 - 4 is divisible by 101
i.e. when 4101 is divided by 101, it gives 4 as the remainder.
                        4101 - 4 = 101 k     where k is a positive integer
                        4101 = 101 k +  4  
                 i.e. 4 is the remainder. 

No comments:

Post a Comment