Archive for the ‘Number Theory’ Category

h1

IMO phase II training Homework Solution

九月 27, 2009

Here is my solution to the following problem given in IMO phase II training for the basic group:

Problem(1): Find all positive integer solutions to: x^3 - y^3 = xy + 61.

Read the rest of this entry ?

h1

Pigeonhole Principle (1)

十二月 19, 2008

When you place three apples into two boxes, then one of the boxes must contain at least two apples. You may say that this is trivial. Indeed, it is a very simple observation and it is perhaps the simplest form of what is called the “Pigeonhole Principle.”

There are many ways to state the Pigeonhole Principle. One of the easiest ways is the following:

When you place n + 1 balls into n boxes, one of the boxes must contain at least two balls.

I remember I first learn the Pigeonhole principle in Read the rest of this entry ?

h1

Diophatine Equation (1)

十月 21, 2008

The following is a classical problem, which seems to be unknown to a lot of students, including the ones in the advanced IMO training session.

Prove that y^2 = x^3 + 7 has no integer solutions.

Proof: First consider the parity of x. If x is even then we have y^2 \equiv 3 \pmod{4}, which is absurd. Hence x is odd.

If x \equiv 3 \pmod{4}, then y^2 \equiv 2 \pmod{4}, which is absurd and thus x \equiv 1 \pmod{4}.

Now write the equation as: y^2 + 1 = x^3 + 8 = (x + 2)(x^2 - 4x + 4). Since x + 2 \equiv 3 \pmod{4} There exists a prime p \equiv 3 \pmod{4} and p divides x + 2. This implies y^2 + 1 \equiv 0 \pmod{p}, and this has no solution since -1 is a square mod p iff p \equiv 1 \pmod{4} Therefore the original equation has no solution in integers.

h1

IMO 2008 Problem 3

九月 5, 2008

Prove that there are infinitely many positive integers n such that n^2 + 1 has a prime divisor greater than 2n + \sqrt{2n}.

Many of you probably knew the elementary solution already. If not, it is included in the appendix. 

I want to discuss about the n^2 + 1 problem and tell you some of the major theorems related to the n^2 + 1 problem. 

Conjecture: There are infinitely many n such that n^2 + 1 is a prime number. 

Theorem (Iwaniec): There are infinitely many n such that n^2 + 1 is either a prime or a product of two primes. 

Reference: 

H. Iwaniec, “Almost-primes represented by quadratic polynomials,” Inventiones Mathematicae, 47 (1978), 171-188. 

While this theorem is the closest thing to the conjecture, it doesn’t help with the IMO problem at all. The most it can say is that there are infinitely many n such that the largest prime divisor of n^2 + 1 is at least n. 

Here are two theorems, that would “second-kill” the problem. 

Theorem (Deshouillers, Iwaniec) There exist infinitely many integers n such that the greatest prime factor of n^2 + 1 is at least n^{6/5}.

Reference: 

Deshouillers, Iwaniec, “On the greatest prime factor of n^2+1. Annales de l’institut Fourier, 32 no. 4 (1982), p. 1-11

Knowing this, this IMO problem is a piece of cake. Hopefully, knowing this would help the contestants with the forth coming IMOs. 

Appendix: Here is a sketch of elementary proof of the problem. Using your favorite method, argue that we may take p > n. (using Iwaniec’s theorem for example…though this is kind of over killing) Since p \,| \, (p - n)^2 + 1, we may also assume p > 2n. Write p - 2n = k > 0.  Since p divides  n^2 + 4 = (p - k)^2 + 4. This implies p \, | \, k^2 + 4. Hence we have p \le k^2 + 4, which implies k \ge \sqrt{p - 4}. We thus have p > 2n + \sqrt{p - 4}. By choosing a sufficiently big p,  we have \sqrt{p - 4} > 4, and hence p > 2n + 4, which implies \sqrt{p - 4} > \sqrt{2n} and we are done. 

Challenge: Imporve the bound in the theorem of Deshouillersand Iwaniec. (this is really a real challenge…)

Coming up: My teaching philosophy. 

 

h1

Sum of Squares (1)

九月 4, 2008

It is a well known theorem by Fermat that any prime of the form p = 4k + 1 can be written as a sum of two squares. 

One question is, in how many ways can we write a prime of the form p = 4k + 1 into sum of two squares? 

More generally, given an integer n.  In how many ways can we write n as a sum of two squares? 

Perhaps I will let the reader to think for a momenrt, I will discuss more of this tomorrow.

h1

Leibniz’s identity and beyond (1)

九月 2, 2008

We start with the following well-known identity:

1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \dots = \frac{\pi}{4}.

Let’s give a proof of this identity:

Note that \frac{1}{2n + 1} = \int_{0}^{1} x^{2n} dx, we may rewrite the series as:

\sum_{n = 0}^{\infty} \frac{(-1)^n}{2n + 1} = \sum_{n = 0}^{\infty} \int_{0}^{1} (-1)^nx^{2n} dx = \sum_{n = 0}^{\infty} (-x^2)^n dx.

Next, we switch the order of integration and summation: [For those of you who do not know why we can do that, you will learn it later]

\sum_{n = 0}^{\infty} \frac{(-1)^n}{2n + 1} = \int_{0}^{1} \sum_{n = 0}^{\infty} (-x^2)^n dx = \int_{0}^{1} \frac{1}{1 + x^2} dx.

This last integral equals: \arctan{1} - \arctan{0} = \frac{\pi}{4}, which finishes the proof.

Consider a similar sum:

S = 1 - \frac{1}{2} + \frac{1}{4} - \frac{1}{5} + \frac{1}{7} - \frac{1}{8} + \dots + \frac{1}{3k + 1} - \frac{1}{3k + 2} + \dots

To compute the sum, we may proceed similarly as before, which yields:

S = \int_{0}^{1} \sum_{k = 0}^{\infty} x^{3k} - x^{3k + 1} dx = \int_{0}^{1} \frac{1}{1 - x^3} - \frac{x}{1 - x^3} dx = \int_{0}^{1} \frac{1}{1 + x + x^2} dx.

This last integral can be computed by completing squares and trigonometric substitutions. We get the sum S equals S = \frac{2}{\sqrt{3}}(\arctan{\frac{3}{\sqrt{3}}} - \arctan{\frac{1}{\sqrt{3}}}) = \frac{2}{\sqrt{3}}\arctan{\frac{1}{\sqrt{3}}} = \frac{2}{\sqrt{3}}\frac{\pi}{6} = \frac{\pi}{3\sqrt{3}}. [The last few equalities would be excellent exercises for those students preparing for HKCEE.]

Hm…notice that mysterious number \pi shows up again… one might wonder, does \pi shows up ALL the time?  The answer is no, because we have the following:

S_2 = 1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \dots = \log{2}. [Note that this is the natural log, i.e. log base e.]

The nest question would be, why does \pi show up, and why?

The problem turns out to be ultimately related to number theory via something called the Dirichlet’s L-function, and we shall talk about it more in a later post.

Exercise: Prove that S_2 = \log{2}.

h1

HKIMO 2009 Selection Test 1 problem 2

八月 31, 2008

Here is the problem:

Solve the following system of equations mod 37:

a^2 + bc \equiv a \pmod{37}
b(a + d) \equiv b \pmod{37}
c(a + d) \equiv c \pmod{37}
bc + d^2 \equiv d \pmod{37}
ad - bc \equiv 1 \pmod{37}

At a glance, this really looks like a nasty set of equations. One can solve it using a case by case analysis. For example, consider the cases b = 0 and b not congruent to 0 respectively.

However, here is the motivation of the problem, the system of equations is really the following equation:

A^2 = A, where

A = \begin{pmatrix}a & b\\c & d \end{pmatrix}

The extra condition, ad -bc \equiv 1 \pmod{37} says that A is invertible. Therefore, we may multiply A^{-1} on both sides to get A = I, the identity matrix. This yields (a, b, c, d) = (1, 0, 0, 1) is the unique answer.

Challenge: Try to answer the same question without the assumption ad - bd \equiv 1 \pmod{37}. (i.e. simply remove this equation from the system of equations.)

h1

Hong Kong Selection Test 1 Problem 6 for IMO 2009

八月 31, 2008

The following question appeared in the selection test 1 for IMO 2009:

For the equation: y^{37} = x^{3} + 11.

Show that the equation is solvable mod p for all primes p < 100.

Before answering the question, let’s discuss how did I come up with this question. The numbers 3 and 37 are completely artificial. I chose the number 11 to eliminate the possibility that there could be a trivial or simple-to-fine “global” solution. (i.e. an integer solution to the equation)

I had the mindset to kill the people who like to brute force. I chose the number 100 because there was vaguely a “false hope” for brute force to work. (after all, there are “only” 25 primes to check.) However, the brute-force-group should ran into trouble after a while (i.e. after the first 10 primes or so…I mean, compute the 37th power of a number mod a prime p is really not that easy.)

Anyways, so what is the key to this problem?

The key to this problem is the so called “qth power lemma” in my number theory notes. Let me first state the theorem:

Theorem (qth power lemma)
Suppose p and q are primes. The map:

\phi: \mathbb{F}_{p}^{\times} \to \mathbb{F}_{p}^{\times}

x \mapsto x^q

is an automorphism if (p-1, q) = 1.

Of course, this theorem is phrased in a group theorectic language. In elementary terms, it simply means that everything is a qth power mod p if (p-1, q) = 1.

Proof: Suppose (p-1, q) = 1. Then there exists integers x, y such that x(p - 1) + qy = 1.

Therefore, a^{1} = a^{x(p-1) + qy} = a^{p(x - 1)} \times a^{qy} = a^{qy} by Fermat’s little theorem.  Hence a = (a^y)^q is a qth power and we are done.

Now using this theorem, we can solve the problem in a few lines.

Solution: If (p-1, 3) = 1 or (p-1, 37) = 1, then the cubing lemma and the 37th power lemma says the equation is solvable since everything is either a cube or a 37th power. Therefore, we only need to check primes p that are congruent to 1 mod 3 and 37. i.e. p \equiv 1 \pmod{111}. However, there is no such prime less than 100. We are done.

Remark 1: the converse of qth power lemma is also true. Interested reader should try to prove it yourself.

Remark 2: one can replace the number 11 by any integer and the result is still true.