Posts

INMO PS Nov 25 pending

Image
 Q1. S1. First guess:  f(x) = cx => c = c^3 => c = -1,0,1 Simple substitutions: 0,0,0 => f(0) = 0 x,-x,0 => f(-x) = -f(x) => f is odd. x,0,0 => f(x^3) = f(x)^3 x,x,0 => f(2x^3) = 2f(x^3) x,x,x => f(3x^3) = 3f(x^3) f(1) = f(1)^3 => f(1) could be -1,0,1 And by putting x = 1 above we get f(3) = 3(f1), f(2) = 2f(1) We can use strong induction here. Now we will use a well known lemma. Every integer n >= 4, n^3 can be written as sum of 5 integer cubes each of which is lesser in absolute value compared to n. So n^3 = a^3 + b^3 ... e^3 Rearrange since we need 3 cubes. n^3 - a^3 - b^3 = c^3 + d^3 + e^3 f(n^3 - a^3 - b^3) = f(c^3 + d^3 + e^3) f(n)^3 -f(a)^3 -f(b)^3 = f(c)^3 + f(d)^3 + f(e)^3 since f is odd. f(n)^3 = f(a)^3... So we want to prove using strong induction that f(n) = nf(1) for n>= 4 knowing it holds for n=1,2,3. Since a,b,c,d,e are smaller in absolute value by strong induction hypothesis we already know their values. => f(n)^3 = (af(1))^3...

Allen inmo lecture 1 continued pending from Q2.

Image
 Q1. S1. Q2. S2. p | x^2 + y^2 => x^2 = -y^2 mod p If y != 0 mod p then gcd(p,y) = 1 so multiplicative inverse of y exists mod p. => (xy^-1)^2 = -1 mod p Now the question is whether a perfect square can be -1 mod p. Let's try some prime numbers of the form 4k+3 3, 7, 11 We see that the squares don't leave -1 mod p. So let's try to prove that a^ = -1 mod p is not possible if p = 4k + 3 From Fermat's little theorem: x^(p-1) = 1 = y^(p-1) mod p when gcd(x,p) = gcd(y,p) = 1 p-1 = 4k + 2 => x^(p-1) = x^(4k+2) = (x^2)^(2k+1) = 1 mod p and => y^(p-1) = y^(4k+2) = (y^2)^(2k+1) = 1 mod p But x^2 = -y^2 mod p => (x^2)^(2k+1) = (-y^2)^(2k+1) mod p = -1 mod p 1 = -1 mod p => 2 = 0 mod p => p | 2 => p = 2 but p >= 3 So the assumption we used in FLT that gcd(x,p) = 1 and gcd(y,p) = 1 is wrong. => p|x or p|y WLOG p|x x^ + y^2 = 0 mod p => y^2 = 0 mod p => p | y since p is prime. H.P. Q3. S3. Rn = 1...111(n times) Consider R1,R2...R(m+1) Using PHP at...

Negbinary representation existence and uniqueness proof done

Image
Q1. Prove that each integer can be represented in base -2 and uniquely so. S1. Proof of existence: Example. 13 = -2*-6 + 1 Now if we can express -6 in base -2 then we can express 13 in base -2 as well. Since you are simply increasing powers of -2 by in -6's representation. -6 = -2*3 + 0 3 = -2*-1 + 1 -1 = -2*1 + 1 Substitute all of them back to get: 13 = 16 -8 + 4 + 1 = -2^4 + -2^3 + -2^2 + -2^0 So basically each integer 'n' can be written as : n = -2.q + r where q is an integer and r is 0,1 q = (r-n)/2 |q| = |r-n|/2 Using triangle inequality: |r-n| <= |r| + |n| => |q| <= (|r| + |n|)/2 Since r is 0,1 |q| < = (1 + |n|)/2 Now whenever |n| > 1 |q| < (|n| + |n|)/2 = |n| So the new integer q has magnitude less than n always. Now we repeat it again: q = -2.q1 + r to get |q1| < |q| So we get a sequence like:  |n| > |q| > |q1|... Eventually the value of qi will become 1,-1 or 0 And each of them has a negbinary representation. -1 = 11 0 = 0 1 = 1 So by bac...

INMO aakash problem set 1 done

Image
Q1. S1. Two quick hints from the question text. Unique product => Fundamental theorem of arithmetic ie each integer > 1 is either a prime or a unique product of prime numbers. Unique => A non negative integer can be expressed uniquely adding powers of 2 ie each non negative integer has a unique binary representation. First, let's try to construct such a set only for integers. Let's say we include only primes. S = {2,3,5,7,11...} But we can't construct 4 = 2^2 since we can't select 2 twice. But what if we include these powers of 2? 2, 2^2, 2^4, 2^8 .... Then we can construct each power of 2 using binary representation. For e.g. 2^13 = 2^(8+4+1) Similarly: 108 = 2^2.3^(1+2) So we can construct any integer using any prime power built by unique binary representation.  What about fractions now? For e.g. 15/2 Can we simply include p^-1, p^-2, p^-4 for each prime? But then 2^3 = 2^(1+2) = 2^(-1+4) So uniqueness is destroyed. So we have to think of negbinary. What is t...

allen inmo class 1 part 2 done

Image
 Q3. S3. Example: p = 5 1 + 1/4 + 1/2 + 1/3 =  5/4 + 5/6  = 5(1/4 + 1/6) = 5(5/12) works. So we simply paired the fractions cleverly. Can be done for any prime to achieve one factor of p. But we need 2 factors of p. What about the other factor? Let S = 1/1 + 1/2 ... 1/(p-1) Also write it in revers and add: 2S =  1 + 1/p-1 + 1/2 + 1/p-2 ... 1/p-1 + 1 = p [1/(p-1) + 1/2.(p-2) + 1/3.(p-3) .. 1/(p-1)] If the inner sum gives us a factor of 'p' we are done. Read up on modular multiplicative inverse . Here for each fraction it exists mod p. And it's simply a permutation of 1,2,3...p-1 Taking mod p: 1/p-1 + 1/2*-2 + 1/3*-3 .. = -[1/1^2 + 1/2^2 + 1/3^2 .. + 1/(p-1)^2] Since their inverses are a permutation of the same numbers, the sum is equal to: -[1^2 + 2^2 + 3^2 .... (p-1)^2] Which is sum of first n squares and has a factor of 'p'. Hence proved.

Modular multiplicate inverse

What is 1/2 mod 5? Let's say x. => 1/2 = x mod 5 => 2x = 1 mod 5 => x = 3 mod 5 In general, when does the inverse exist? a^-1 mod m exists iff gcd(a,m) = 1 So 1/2 mod 6 doesn't exist. For any prime: 1/1, 1/2, 1/3... 1/p-1 mod p will be a permutation of 1,2,3...p-1 Why? First of all the inverses exist for each fraction since gcd(k,p) = 1 for each k in the denominator. Now we show none of them are equal. If they are equal, then: Let's say 1/a = c = 1/b mod p. Then: a.c = b.c mod p c(a-b) = 0 mod p p will divide either c or (a-b) but both are less than p. So not possible. Now we have p-1 distinct remainders against p-1 possible remainders. So they have to be a permutation of 1,2,3..p-1.

powers modulo cheat sheet

 squares mod 4 = 0,1  squares mod 8 = 0,1,4  cubes mod 7,9 = 0,+-1 Also, x^3 = x mod 3  x^4 mod 5,16 = 0,1  x^5 mod 11 = 0,1,-1  x^6 mod 7 = 0,1  x^6 mod 13 = 0,1,-1 So for a prime p = 2k+1, x^k = 0,1,-1 mod p