Archive for 九月, 2008

h1

Teaching Philosophy (1)

九月 15, 2008

I think the most important aspect in university teaching is providing the right learning atmosphere. The class will basically takes care of itself if the atmosphere is right. i.e. 無為而治。

It is my goal to promote students’ interests in mathematics. To do this, I first ask myself the question: Why do I love mathematics? In short, I love mathematics because I appreciate its power, beauty, and applications. Thereofre, I shall try my best to make my students to appreciate the same three aspects. Nothing is more convincing than giving examples to illustrate these:

(1) For power, I ask my students to solve the following problem:Given a 8 by 8 checkerboard with the opposite corners removed. Can you tile it with 31 1 by 2 dominos?

(2) For beauty, I ask them the following problem: Let P = (4, 3). Suppose Q is a point, which can move along the line y = x, and R be a moving point on the x-axis. What is the minimum perimeter of the triangle PQR?

(3) For applications, I show them how Google’s page rank works. (when I was teaching linear algebra, for calculus classes, there are more examples…)

To be continued…

h1

Answer to “Another HKAL Problem”.

九月 13, 2008

Here is an intuitive answer given by Katherine Chiu (my high school math teacher):

Let f = 2^x + 5^x, g = 3^x + 4^x. It is clear that f and g are monotonically increasing, and have no points of inflection. Therefore, the two functions intersect at most twice. Therefore, x = 0 and x = 1 are the only solutions.

Here is my solution, using Mean Value Theorem (MVT):

Let f(y) = y^x, then by MVT, there exists a \in (2, 3), b \in (4, 5) such that:

f'(a) = [f(3) - f(2)]/(3 - 2) = f(3) - f(2) = 3^x - 2^x, and f'(b) = 5^x - 4^x.

Suppose there is a real x such that 3^x - 2^x = 5^x - 4^x, we have:

xa^{x-1} = xb^{x-1}, which means either x = 0 or (x - 1)[log a - log b] = 0. Now, since a \not = b, we have x = 1. Therefore, the only solutions are x = 0, and x = 1.

h1

Another AL problem?

九月 12, 2008

I am not sure whether the following is an actual AL problem, but it can definitely be solved using techniques learned in AL pure mathematics.

Find all real numbers x such that 2^x + 5^x = 3^x + 4^x.

There are obvious solutions x = 0 and x = 1. Is that it?

While I can simply give my solution, I want the reader to play around this problem a little bit, and I hope some of you will either e-mail me the answer or post it as a comment. If no one does that, solution will be given tomorrow.

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 (2)

九月 5, 2008

Recall the question, let p = 4k + 1 be a prime, in how many ways can we write p as a sum of two squares?

The answer is 8, i.e. if p = a^2 + b^2, then the pair (a, b) works. However, the following pairs also work: (b, a), (-a, -b), (-b, -a), (a, -b), (-b, a), (-a, b), (b, -a)

The reason is simple if one thinks in terms of Gaussian integers \mathbb{Z}[i]. Recall that the Gaussian primes are precisely the following:

1) 1 + i.

2) Rational primes p \in \mathbb{Z} of the form 4k + 3.

3) \pi = a + bi such that a^2 + b^2 = p, a rational prime.

Since \mathbb{Z}[i] has unique factorization, if p = a^2 + b^2, we must have p = (a + bi)(a - bi), therefore \pi = a + bi must be a Gaussian prime, and hence the prime divisors of p are precisely a + bi and its unit multiples, namely: -(a + bi), i(a + bi), -i(a + bi). Likewise for the conjugate \overline{\pi} = a - bi, we also have 4. Therefore, this gives 8 different ways to write p as a sum of two squares.

For the general question: For a given integer n, how many ways can we write it as a sum of two squares. For this, let r(n, k) to denote the number of ways to write n as a sum of k squares. We have:

r(n, 2) = 4 \sum_{0 < m | n, \; m \, odd}^{}(-1)^{\frac{m-1}{2}}.

For the proof, one may try to use Gaussian integers. There is a more general method that deals with finding r(n, 2k), which uses the theory of modular forms. I will discuss that later.

Coming up: IMO 2008 Problem 3.

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

CGMO 2007 Problem 7 and Liouville’s theorem

九月 3, 2008

Let a, b, c \in \mathbb{Z} such that |a|, |b|, |c| \le 10.

Let f(x) = x^3 + ax^2 + bx + c.

Suppose |f(2 + \sqrt{3})| < 10^{-4}. Prove that f(2 + \sqrt{3}) = 0.

We first sketch a proof of the official solution:

Plugging \alpha = 2 + \sqrt{3} into f(x) yields: f(\alpha) = (26 + 7a + 2b + c) + (15 + 4a + b)\sqrt{3} = m + n\sqrt{3}.

We have |m| < 130, |n| \le 65. This gives |m - n\sqrt{3}| \le |m| + |n\sqrt{3}| < 260.

If f(\alpha) \not = 0, we have m - n\sqrt{3} \not = 0, which implies m^2 - 3n^2 \not= 0. Hence |m^2 - 3n^2| \ge 1.

Therefore, we have:

|f(\alpha)| = |m + n\sqrt{3}| = |\frac{m^2 - 3n^2}{m - n\sqrt{3}}| \ge | \frac{1}{m - n\sqrt{3}}| > \frac{1}{260}, which is a contradiction and we are done.

Notice that if we replace 10^{-4} by 10^{-2}, then the above solution does not work.

—————————————————————————————

Here, I give a different proof, using the following theorem of Liouville:

Theorem (Liouville) Let \alpha be an algebraic number of degree n. Let
f(x) = a_nx^n + \dots + a_0 \in \mathbb{Z}[x] such that f(\alpha) = 0
and that f is irreducible over \mathbb{Q}. Then for all p/q \in \mathbb{Q},
we have:

\left| \alpha - \frac{p}{q} \right| \ge \frac{c(\alpha)}{q^n},
where c(\alpha) = \min\{ M, 1/|a_n|(3M)^{n-1} \}.

Here M = \max \{ |\alpha_i| \}, where \alpha_i are the roots of f. The proof of this theorem will be given later, let;s see how we can apply this theorem to this CGMO problem.

Proof: Let \alpha = 2 + \sqrt{3}, \beta = 2 - \sqrt{3}. Let g(x) = x^2 - 4x + 1, then g(\alpha) = 0 and f is clearly irreducible. (i.e. \alpha is an algebraic number of degree 2) Since \alpha^2 = 4\alpha - 1. We have f(\alpha) = \alpha^3 + a\alpha^2 + b\alpha + c = (15 + 4 + b)\alpha + (c - a - 4). Now, suppose f(\alpha) \not= 0, then we have (15 + 4a + b)(c - a - 4) \not = 0 since 2 + \sqrt{3} is not rational (this is an easy application of the rational root theorem). Write p = |15 + 4a + b|, q = |c - a - 4|. Now |\beta f(\alpha) | = |p + q\beta| since \alpha \beta = 1. By Liouville, we have:

\frac{|\beta| |f(\alpha)|}{q} = \left| \beta + \frac{p}{q} \right| \ge \frac{c(\beta)}{q^2}.

Now, c(\beta) = \min \{ M, 1/3M \} = \min\{ \alpha, 1/(3\alpha)\} = 1/(3\alpha) since 3\alpha^2 > 1.

This gives:|f(\alpha)| \ge \frac{1}{\alpha \beta 3q} = \frac{1}{3q}.

Finally, we have 3q \le 3|c - a - 4| \le 3(24) = 72 < 100.
Therefore, 1/3q > 10^{-2}. This is a contradiction and
we are done.

—————————————————————————————

Appendix: Proof of Liouville’s theorem.

Proof: We have |f(\alpha) - f(p/q)| = |f(p/q)| \ge 1/q^n since the numerator of f(p/q) is a non-zero integer. Now we consider two cases:

(1) |p/q| > 2M, then |\alpha - p/q| \ge ||p/q| - |\alpha|| \ge M \ge M/q^n, since q \ge 1.

(2) |p/q| \le 2M, then |\alpha_i - p/q| \le |\alpha_i| + |p/q| \le 3M. We have |a_n| \prod_{i = 1}^{n} |\alpha_i - p/q| = |f(p/q)| \ge 1/q^n. Let \alpha_1 = \alpha, we have:

|\alpha - \frac{p}{q}| \ge \frac{1}{|a_n| \prod_{i = 2}^{n} |\alpha_i - p/q|q^n} \ge \frac{1}{|a_n (3M)^{n-1}q^n}.

Hence, we have \left| \alpha - \frac{p}{q} \right| \ge \frac{c(\alpha)}{q^n} as claimed.

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

Generating Function and Tiling Problems

九月 1, 2008

Consider the following classic: Suppose one deletes two opposite corners from a standard 8 by 8 checkerboard (or chessboard). Prove that it cannot be tiled by 31 two by one dominos.

One solution is to put the standard coloring on the board, and argue that the number of black squares and the number of white squares are different. Hence such tiling is not possible.

Here I give a different solution using generating function. To do this, we place the board on a coordinate system. Say the lower left corner is (0, 0), and the top right corner is (8, 8). From now on, we use the coordinate of the lower left corner to represent each square. i.e. the square at the top right corner is represented by (7, 7).

Now for each (a, b), we associate a monomial x^a y^b. Therefore, a horizontal domino is represented by the polynomial: x^a y^b (1 + x), and a vertical domino is represented by the polynomial x^a y^b (1 + y).

Suppose a tiling using these dominos is possible, we must have the following identity:

(\sum_{a = 0}^{7}\sum_{b = 0}^{7}x^a y^b) - 1 - x^7 y^7 = f(x, y)(1 + x) + g(x, y)(1 + y), for some polynomials f(x, y) and g(x, y).

i.e. \frac{x^8 - 1}{x - 1}\frac{y^8 - 1}{y - 1} - 1 - x^7y^7 = f(x, y)(1 + x) + g(x, y)(1 + y).

Since this is an identity, we may let x = y = -1. The left hand sides gives -2, while the right hand side gives 0 . Therefore, such tiling is not possible and we are done.

Challenge: Suppose we have 21 three by one domino. (or tri-mino?) Which square in a 8 by 8 checkerboard must be removed in order for these tri-minos to tile the board?