Sunday, February 27, 2011

2011/020) Gaussian Integer

Here i discuss Gaussian integer and property of Gaussian integer

x+iy in complex number is a Gaussian integer if x and y are integers

they are closed under addition subtraction and multiplication

A Gaussian integer a + bi is prime if and only if:

* one of a, b is zero and the other is a prime of the form 4n + 3 or its negative − (4n + 3) (where n \geq 0)
* or both are nonzero and a2 + b2 is prime.


13 is not a Gaussian prime because 13 = 9+4 = (3^2+2^2) = (3+2i)(3-2i)

any prime number of the form 4n+1 can be expressed as sum of 2 squares and cannot be a Gaussian prime.

but a prime of the form 4n+3 cannot be expressed as sum of 2 squares and hence Gaussian prime.

2 is a special prime as it is not odd and 2 = 1^2+1^2 = (1+i)(1-i)

Friday, February 25, 2011

2011/019) Prove that Sin (a +b ) sin (a-b) = sin ^2 a – sin ^2b

The above is an interesting identify in trigonometry and this can be done wrongly with out understanding trigonometry

As we do not know trigonometry we take sin as a multiplier

So sin (a+b) = sin a + sin b

And sin (a-b) = sin a – sin b

Multiply them to get

Sin (a+b) sin (a-b) = (sin a + sin b) (sin a - sin b)
= sin ^2 a – sin ^2 b

however above is wrong but the ans is right

now to the correct approach

Sin (a+b) sin (a-b)
= (sin a cos b + cos a sin b)(sin a cos b – cos a sin b)
= sin ^2 a cos^2b – cos^2 a sin ^2b
= sin ^2 a(1- sin ^2 b) – cos^2 a sin ^2 b
= sin ^2 a – sin ^2 a sin ^2 b – cos^2 a sin^2 b
= sin ^2 a – sin ^2 b(sin ^2 a + cos^2 a)
= sin ^2 a – sin ^2 b


The above example is to demonstrate that we get right result through erroneous approach and one need to be careful about it

Sunday, February 20, 2011

2011/018) Prove that in the product

(1-x+x^2-x^3+ ..... - x^99 + x^100) ( 1 +x +x^2 + .. x^99 + x^100) after multiplying there does not appear a term of x odd degree.

this problem is solved by taking coefficient in a couple of books and I try to solve in a different approach

LHS = (1-x^101)/(1-x) * (1+ x^101)/(1+x)
= (1-x^202)/(1-x^2)

if we define f(x) = (1-x^101)/(1-x) then f(x^2) is the given expression and as it is division of p(x^2) by q(x^2) so cannot have any term other than (x^2)^2k or odd power of x

Saturday, February 19, 2011

2011/017) if ( p and q) are roots of equation (x-a)(x-b) = c then


-->
Roots of equation (x-p)(x-q) + c are
a) a c
b) bc
c) a,b
d) (a+c), (b+c)

solution
-->

we have
(x-a)(x-b)) - c = x^2- (a+b) x+ (ab-c)
As p and q are roots so p+ q = a + b …1
and pq = ab – c or pq + c = ab …2
Now
(x-p)(x-q) + c = x^2 - (p+ q) x + (pq + c)
= x^2-(a+b)x + ab = (x-a)(x-b) ( from 1 and 2)

So roots are a and b
hence ans is c)

Sunday, February 13, 2011

2011/016) a problem with repunit

A number is called repuint if all the digits of the number are 1 that is it is 1 , 11 , 111 so on

in a repunit number with 50 1's the 26th digit from the left is modified to some digit so that is is divisible by 13. what is the digit

Ans:
method 1
say the digit x
the number is 1(25 times)x1(24 times)
= (10^50-1)/9 + (x-1)(10^25-1)/9

we need to find x such that
(10^50-1)/9 + (x-1)(10^25-1)/9 mod 13 = 0

as 9 is coprime to 13

so (10^50-1)+ (x-1) )(10^25 -1)mod 13 = 0


as 10 and 13 are coprime so as per format's little theorem


10^12 = 1 mod 13

so 10^48 = 1 mod 13

so 10^50 = 100 mod 13

so (10^50-1)+ (x-1) )(10 -1) =

(100-1) + 9(x-1) mod 13 = 0

99 + 9x - 9 or 90+9x = 0 mod 13 or 10 +x = 0 mod 13 or x= 3

so ans = 3

Method 2


sequence of 12 1's is divisible by 13 so we subtract sequence of 12 1's and divide by 10^12 and do it 2 times

we get 1...(25times)x

as seqeunece of sequence of 12 1's is divisible by 13 so multiplying by any number so multiply by 10^14 and subtract

we get 1..(13 times) x

as sequence of 12 1's is divisible by 13 so multiplying by any number so multiply by 10^2 and subtract

1x is the number and divisible by 13 so x = 3

Wednesday, February 9, 2011

2011/015) Let p be a prime number > 5. Show that p divides infinitely many of the numbers 1, 11, 111 ...

as p > 5 p and 10 are coprimes and so are p and 9

so if p devides x <=> p devides 9x

so p devides 9, 99, 999, so on

so 10^n mod p = 1

now as p and 10 are co-primes then

10^n(p-1) is 1 mod p(for n = 1 ... )

or 10^n(p-1) -1 is divsible by p

or (10^n(p-1)-1)/9 that is 1 repeated n(p -1) is dvisible by p

so there are many numbers divisible by p

Tuesday, February 8, 2011

2011/014) Proof of existence of infinite prime numbers.

There are infininite number of prime numbers and there are a couple of proofs these are in the linked list below

http://primes.utm.edu/notes/proofs/infinite/index.html

I propose a proof that is simpler

If I prove that if for any n there is a prime > n then I am through

Let us consider n!+1

This does not have any factor from 2 to n and hence it is a prime or in case it is not a prime then prime factor > n.

So for any n there is a prime number> n

Hence proved