h1

Putnam – Series and Calculus

October 31, 2009

Let d be a real number. For each integer m \geq 0, define a
sequence \{a_m(j)\}, j=0,1,2,\dots by the condition

a_m(0) = d/2^m,

a_m(j+1) = (a_m(j))^2 + 2a_m(j),

j \geq 0

Evaluate \lim_{n \to \infty} a_n(n).
(Putnam 1985 A3)

The RHS of the sequence recursive definition looks a lot like (a_m(j) + 1)^2, so we should write it in this form:

a_m(j+1) = (a_m(j) + 1)^2 - 1

This works very nicely, as when we goto the next term, we cancel out the 1, square, then subtract the 1 again. For the first few values of j:

a_m(0) = a_m(0) (We’re going to leave it in that form for now)

a_m(1) = (a_m(0) + 1)^2 - 1

a_m(2) = (a_m(0) + 1)^4 - 1

a_m(3) = (a_m(0) + 1)^8 - 1

And it’s easy to show that a_m(j) = (a_m(0) + 1)^{2^j} - 1

Thus, we have:

a_m(j) = ( \frac{d}{2^m} + 1)^{2^j} - 1

And we want to find:

\lim_{n \to \infty} a_n(n)

= \lim_{n \to \infty} ( \frac{d}{2^n} + 1)^{2^n} - 1

We’ll focus on the part that doesn’t include the -1, as it clearly isn’t affected by the limit.

= \lim_{n \to \infty} ( \frac{d}{2^n} + 1)^{2^n}

To simplify this, we’ll let x_n = \frac{1}{2^n}, and find the limit as x \to 0

\lim_{x \to 0} (1 + dx)^{\frac{1}{x}}

Call this expression y. Then we have:

 \lim_{x \to 0} \ln{y} =  \lim_{x \to 0} \frac{\ln{(1+dx)}}{x}

To evaluate this limit, use L’Hopital’s Rule:

=  \lim_{x \to 0} \frac{\frac{d}{1+dx}}{1}

= \lim_{x \to 0} \frac{d}{1+dx} = d

\lim_{x \to 0} \ln{y} = d

\lim_{x \to 0} y = e^d

Thus, our original limit is e^d - 1. Hip hip hurrah!

h1

Putnam – Pigeonhole

September 30, 2009

Prove that there exist integers a, b, c, none of which with absolute value greater than 1 million, such that:

|a + b\sqrt{2} + c\sqrt{3}| < 10^{-11}

The words “there exist” almost immediately points toward the pigeonhole principle. The key is to realize that if we remove the absolute value, then the difference between two numbers of the form a + b\sqrt{2} + c\sqrt{3} will also be in this form. Thus, if we can find two numbers of this form within 10^{-11} of each other, or show that they exist, then we’ll be done. To keep the absolute value of 1 million condition, we will restrict our numbers to the positive integers, so that the difference of each number in our difference is bounded between -1 million and 1 million.

Our lower bound for such numbers is clearly 0. To develop a crude upper bound, we have that:
a + b\sqrt{2} + c\sqrt{3} < a + 2b + 3c for positive a, b, and c.

Thus, if we maximize a, b, and c, then our upper bound is 10^6 + 2 \cdot 10^6 + 3 \cdot 10^6
= 6 \cdot 10^6

Since there are 10^6 choices for each integer, the total number of numbers is 10^{18}. Now, if we divide the range of possible values into 10^{18} - 1 intervals, each one is less than the following size (if we use our upper bound):

\frac{6 \cdot 10^6}{10^{18} - 1}

< \frac{6 \cdot 10^6}{10^{18}} = 6 * 10^{-12} < 10^{-11}

Thus, there will be two in the same interval! Yayayay, QED.

h1

Cylindrical coordinates – Round 2!!

September 27, 2009

This is just an update to an older post I made, which you can see here. In it, we reduce a Putnam problem into finding the volume of the set of all points satisfying:

(r-3)^2 + z^2 \leq 1

where r^2 = x^2 + y^2.

This is the equation for a torus. At the time of that post, I said that I didn’t have an intuitive reasoning for why that is. Now I do! Consider when z = 0, which is the xy cross section of the solid. We have:

(r-3)^2 \leq 1

This is the set of all points farther than 2 from the origin, but less than 4 from the origin. This is the main cross section of our torus.

Now, rewrite our main equation in the form:

(r-3)^2 \leq 1 - z^2

Consider as we decrease or increase z. There is symmetry in this, so for now we’ll just refer to the increasing. The decreasing is exactly the same. As we increase z, the RHS gets smaller and smaller, and thus, the range of possible values of r gets smaller and smaller. Suppose that for some value of Z, the RHS was equal to .001. Then r must be greater than 2.999 and less than 3.001. This leads to the reasoning that the distance from the center of the tube to the origin is 3. Also, since the LHS is strictly positive, z must be less than or equal to 1. This leads to the reasoning that the radius of the tube is 1. This leads to the definition of our torus.

Now, suppose you still didn’t quite know this definition. Or perhaps you figured it out during the test, but wasn’t sure if it was a well known fact or not. The intuitive reasoning offers some insights, but it’s not a proof. How else could you do the problem?

One way is simply by integration. Consider as we vary z, from -1, to 1. Each one defines a set of points in R^2. Thus, we can integrate the area of this set in terms of z from -1 to 1.

Simplifying (or should I say expanding?) the expression yields:

3 - \sqrt{1 - z^2} \leq r \leq 3 + \sqrt{1 - z^2}

The outer radius squared is (3 + \sqrt{1 - z^2})^2, and the inner radius squared is (3 - \sqrt{1 - z^2})^2. Thus, the area of the set of points, given z, is:

\pi((3 + \sqrt{1 - z^2})^2 - (3 - \sqrt{1 - z^2})^2) = 12\pi\sqrt{1 - z^2}

Where that last step comes from difference of squares.

Thus, integrating from -1 to 1 yields 6\pi^2, as the integral of \sqrt{1 - z^2} from -1 to 1 is \frac{\pi}{2}, since it is the area of a semi circle of radius 1.

h1

Olympiad – Sequences

September 4, 2009

Let k be a positive integer. The sequence a_n is defined by a_1 = 1, and for n \geq 2, a_n is the nth positive integer greater than a_{n-1} that is congruent to n modulo k. Find a_n in closed form.
(AMO 1997)

Do this by playing around with various values of k and generating the first few terms of the sequence for each:

k=1
1, 3, 6, 10, 15

k=3
1, 5, 12, 22, 35

These sequences are easy to analyze, and both seem to follow the rule:
a_n = n + \frac{n(n-1)}{2}k
If you can’t see how to get this, define a_{n+1} = a_n + g_n, try to come up with what g_n is by conjecturing the pattern will continue, etc.

So all that’s left is to prove this formula.

No matter what k is, a_1 = 1.

So suppose our formula holds for a_i. We want to show its also true for a_{i+1}.

Since we have from our inductive step that a_i \equiv i \pmod{k} (note that this holds for our base case since a_1 = 1 also follows the modulo rule of the sequence), we also have that a_i + 1 \equiv i+1 \pmod{k}. So this is the first number greater than a_i congruent to i+1 modulo k. We want the (i + 1)th number. So we must add k to this expression i more times. Thus:

a_{i+1} = a_{i} + 1 + ki

Using our inductive step, we can substitute for a_i :

a_{i+1} = i + \frac{i(i-1)}{2}k + 1 + ki

Interpretting that fraction as a sum:

a_{i+1} = i + (1 + 2 + \cdots + (i-1))k + 1 + ki

a_{i+1} = (i+1) + (1 + 2 + \cdots + i)k = (i+1) + \frac{i(i+1)}{2}k

QED

h1

Putnam – Calculus

August 22, 2009

Easy Putnam calculus problem from the 1980’s:

Define polynomials f_n(x) for n \geq 0 by f_0(x)=1, f_n(0)=0
for n \geq 1, and

\frac{d}{dx} f_{n+1}(x) = (n+1)f_n(x+1)

for n \geq 0. Find, with proof, the explicit factorization of
f_{100}(1) into powers of distinct primes.

(Putnam 1985 – B2)

Using their definition, you can start churning out the polynomials for values of n = 0, 1, 2, 3. It’s given that f_o(x) = 1. So we can plug this into the expression for the derivative of f_1(x), and integrate. We are given that f_n(0) = 0 for all n, implying that when we integrate, the constant term is 0. Doing this out a few times, we get:

f_0(x) = 1
f_1(x) = x
f_2(x) = x^2 + 2x = x(x+2)
f_3(x) = x^3 + 6x^2 + 9x = x(x+3)(x+3)

At this point, it’s worth conjecturing that f_n(x) = x(x+n)^{n-1} for all n. Part of finding this is realizing that you have to factor the expressions. The biggest hints for this should be that they want the value of f_{100}(x) factored, and the coefficients in f_3(x) highly suggest factoring out an x and then factoring the resulting quadratic.

Best way to prove this would be induction. Assume that f_n(x) = x(x+n)^{n-1}

From our given, we have:

\frac{d}{dx} f_{n+1}(x) = (n+1)(x+1)(x+n+1)^{n-1}

The RHS isn’t particularly easy to integrate, but since we know what we want f_{n+1}(x) to be, we can take the derivative of it and show that its equal to the LHS. Since we know that the constant term of each is 0, this will show that the integral of the RHS is equal to what we want:

\frac{d}{dx} x(x+n+1)^n = (x+n+1)^n + x(n)(x+n+1)^{n-1}
= (x+n+1)^{n-1}(x+n+1 + xn)
= (n+1)(x+1)(x+n+1)^{n-1}

So by induction, f_{100}(x) = x(x+100)^{99} , and f_{100}(1) = 101^{99}

Btw, I highly recommend that you read Uzumaki, it’s my new favorite manga. It’s short, only 19 chapters. I read it in about a day. I highly recommend it. It’s quite creepy, and made my night.

Uzumaki

Edit: Kay is a picky little fellow and called me out for copying that Uzumaki part from something I posted on his blog, so I might type up a more indepth Uzumaki review later to satisfy his craving for spirals.

h1

USAMO – Invariants

August 10, 2009

Here’s a nifty invariant problem that we did in WOOT. I had trouble with it for a while but after reviewing stuff last night it magically made sense suddenly.

The sides of a 99-gon are initially colored so that consecutive sides are red, blue, red, blue, \,\ldots, \, red, blue, yellow. We make a sequence of modifications in the coloring, changing the color of one side at a time to one of the three given colors (red, blue, yellow), under the constraint that no two adjacent sides may be the same color. By making a sequence of such modifications, is it possible to arrive at the coloring in which consecutive sides
are red, blue, red, blue, red, blue, \, \ldots, \, red, yellow, blue?
(USAMO 1994, #2)

This was when the USAMO was only 5 problems in one session, instead of 6 problems split into two sessions, so this should be viewed as around a 1/4 difficulty level, as opposed to a 2/5.

Since we’re dealing with a problem where we are changing things, the first thing to do is to look for an invariant. That is, something that remains consistent, no matter what we change. A first natural step is to replace the colors with numbers. Lets say Red = 1, Blue = 2, Yellow = 3. Then we have the sequence:

1, 2, 1, 2, 1, 2 ….., 1, 2, 3

Which we want to transform to

1, 2, 1, 2 ,1, 2, …., 1, 3, 2

An easy way to look for an invariant is to make a move on our original sequence, and compare the resulting sequence to the original. For example, we can make the following change:

1, 2, 1, 2, 1, 2 ….., 1, 2, 3
->
1, 2, 3, 2, 1, 2 ….., 1, 2, 3

Now we begin searching for an invariant. It’s natural to only look at the area we changed:

2, 1, 2
->
2, 3, 2

It’s fairly obvious that the sum and product isn’t constant. Considering that the desired end state doesn’t vary in sum or product, it’s probably not worth investigating. Keeping in mind that it’s a rearrangement, and conjecturing that the end state won’t be reachable, we should look at an invariant which relates consecutive terms.

Looking at the original sequence and the altered sequence, one possible variant is the number of increases and decreases. For example, as we go from 2 ,to 1, to 2, we have one decrease and one increase in the value of the terms. As we go from 2 to 3 to 2, we also have one decrease and one increase. This is a possible invariant, and thus it should be checked if it applies to all such alterations. We will list all such ways of altering a triple by changing the second term of it. We may assume that the first and third terms are the same. If they weren’t, then it would not be possible to alter it, as it would result in two consecutive sides being the same color. All possible triple moves are:

(1, 2 ,1) (1, 3, 1)
(2, 1, 2) (2, 3, 2)
(3, 1, 3) (3, 2, 3)

Now we can see that our invariant holds for all possible moves. So we need a way of relating this to the entire sequence. I did this as follows:

Define a function f(a,b) = 1 if b > a , and -1 if b < a

Define the oscillating sum of a 99-gon labeled with numbers to be:

f(s_1, s_2) + f(s_2, s_3) + \cdots + f(a_{98}, a_{99}) + f(a_{99} + a_1)

where a_i is the number corresponding with the ith side. Because of the invariant we discovered, making a legal move does not affect this oscillating sum.

It's easy to see that the oscillating sum for the beginning state is 1, while the oscillating sum for the desired stage is -1. Thus, it cannot be achieved through through the legal moves described.

h1

AIME – Number Theory

July 21, 2009

I’m going to outline my thought process for going through a problem, perhaps somebody will find it helpful. At times it’s at the point of rambling and such, but reviewing my thought process helps me refine it.

Consider the sequence of integers 101, 104, 109, 116, \cdots , where a_n = 100 + n^2.

Let f(n) = \gcd{(a_n, a_{n+1})}. Find the maximum value of f(n).

I began by expression the two consecutive terms algebraically, which are:

100 + n^2 and 100 + n^2 + 2n + 1.

The key to cracking this problem is the fairly obvious observation that the GCD must divide both of these expressions. It’s safe to assume that the second term will never be a multiple of the first, as this would imply that 100 + n^2 divides 2n + 1. Lets call the GCD of this expression G.

We have that G must divide 100 + n^2 and 100 + n^2 + 2n + 1. However, this implies that G also divides 2n + 1. This leads us to wishful thinking: What if G were actually 2n + 1 ? Would this maximize it? It’s hard with the information we have to justify it now, but it’s worth looking into.

Assume that G = 2n + 1. Then:

\frac{n^2 + 100}{2n + 1}

must be an integer. Doing the division, we get:

\frac{1}{4}(2n - 1 + \frac{401}{2n+1}

Clearly the largest possible value of n is n = 200. This gives us G = 401.

We now have a very very good guess for our answer, but it is still only a guess. How can we be sure whether or not this is the largest? In our logic, it’s clear that given a specific n, a theoretical maximum G is 2n + 1. However, this isn’t actually the G for all numbers. Hypothetically, the numbers could get quite large, and our G will fall below our theoretical maximum of 2n + 1, but since n is so large anyway, it could still be greater than 401. At this point, it might be worth trying to show that 401 is actually the largest we can get.

But where to start? Maybe with some of our original ideas. Going back, we still have that G must divide 2n + 1, as well as n^2 + 100. Can we turn this into algebra? I think so. Put:

2n + 1 = aG
n^2 + 100 = bG

$\frac{2n + 1}{a} = \frac{n^2 + 100}{b} = G$

Both of these must be integers. we can assume that a and b are relatively prime, or G wouldn’t be the largest divisor of both, but it’s not apparent how this will be helpful.

At this point, I decided that this was a dead end and took another step back. We want to show that the largest possible value is 401. This is still closely related to the idea of assuming that 2n + 1 was the GCD. Perhaps we need to again work by narrowing down the GCD.

From other number theory problems, we know that if GCD(a,b) = G, then G must divide ax + by for any integers x and y. So if we got a linear combination of a_n and a_{n+1} that is 401, we’d be done.

So we need a linear combination of n^2 + 100 and n^2 + 2n + 101. equal to 401. Playing around with them, we see that we need a way to get rid of the n terms.

At this point, I played around, keeping a list of combinations I had come across, until I found two which added together to get rid of all the n terms. Indeed, if we let a = n^2 + 100, b = n^2 + 2n + 101 :

2n(b - 3a) - b + a = 401

Thus, the GCD of any two consecutive terms MUST divide 401.

h1

Number Theory – Digits

July 9, 2009

I’m pretty lazy and don’t feel like writing the solution >.> but here is an easy yet interesting problem I did:

Prove that among any 18 consecutive three-digit numbers, at least one is divisible by the sum of its digits.

h1

Simple GCD problem

June 26, 2009

Let a_1, a_2, a_3, \cdots be a sequence of natural numbers such that
\gcd{(a_i, a_j)} = \gcd{(i, j)} where i \neq j ..
Prove that a_n = n for all n.

(Russia 1995)

Here, it helps a bunch that we know that a_n = n . It gives us something clear and simple to aim for. The equation they gave us is also easy to work with, as we can plug in variables as well.

Since we know that for any integers a and b, each is a multiple of gcd(a, b), it is easy to come up with some interesting values to plug in for i and j. For example, we have:

\gcd(a_n, a_{2n}) = \gcd(n, 2n) = n

Now we have shown that a_n is a multiple of n for all n. So we can write:

a_n = bn , for some integer b.

We’d be done if we can show that this value of b is always 1, which leads us to generalize. We have:

gcd(a_n, a_i) = gcd(bn, ci) = gcd(n, i) for some integer n and i.

Is there a nice value of i which works? Yes! Let i = bn!

gcd(bn, cbn) = gcd(n, bn)

bn = n

b = 1

And we’re done, as we’ve shown that a sequence satisfies the conditions only if it is the natural numbers. Clearly the “if” requirement holds. QED.

h1

SUMMER

June 22, 2009

I haven’t posted on here for a while for many reasons. Probably the biggest was that after studying for AP’s, seeing as it’s senior year, I was basically done, and couldn’t force myself to do any math, despite how much I love it. So I spent the last month or so having my gaming binge, and now, I’m ready to start it up again.

I got two new math books, Princeton’s Companion to Mathematics, and Putnam and Beyond. I’m still waiting for my USAMTS books to get in the mail. Hopefully those are good too. I’m planning on going through Putnam and Beyond over the summer. Princeton’s Companion will be more of a reference book, as of now I don’t plan on actually going through it. Maybe if I get really bored. Anyway, I’ll be posting more Putnam problems on here, and perhaps some other funky stuff too. Just letting you know, I’m still alive.