Thursday, April 30, 2015

Problem Post 3-2: Prime Valued Polynomial


Problem Posts



QUESTION
(PMO 2012-2) Let $f$ be a polynomial function with integer coefficients and $p$ be a prime number. Suppose there are at least four distinct integers satisfying $f\left(x\right)=p$. Show that $f$ does not have integer zeroes.

Laconic Solution Sketch Get the most obvious auxiliary polynomial.

Discussion

For many people this will probably be the easiest problem in the paper. First, we need a very basic theorem:
THEOREM
Given a polynomial $f\left(x\right)$, iff $f\left(a\right)=0$, then $\left(x-a\right)$ divides $f\left(x\right)$.

Now we want to leverage the Root Theorem along with what we know about $f\left(x\right)$. There are at least two approaches to consider:

Route 1: Jump to Contradiction

One approach would be to apply the theorem directly. Suppose $f\left(x\right)$ has an integer zero $n$, then $\left(x-n\right)$ is a factor of $f\left(x\right)$. That means that \[ f\left(x\right)=q\left(x\right)\left(x-n\right) \] where $q\left(x\right)$, the quotient, is a polynomial with integer coefficients. Now let's plug in $x=a_{1}$. We would have $p=f\left(a_{1}\right)=q\left(a_{1}\right)\left(a_{1}-n\right)$. Our left hand side is a prime number, and $q\left(a_{1}\right)$ and $\left(a_{1}-n\right)$ are integers. This means that $\left(a_{1}-n\right)$ is a divisor of a prime number, so $\left(a_{1}-n\right)$ is among $\left\{ \pm1,\pm p\right\} $.
This fact, taken in itself, isn't very interesting. But when we compound that with the fact that the same has to occur for $\left(a_{2}-n\right)$, $\left(a_{3}-n\right)$, and $\left(a_{4}-n\right)$, something interesting happens: these four numbers have to all be different, and each can be one of four numbers! So that means that the four $a_{i}$ have to be $n+1$, $n-1$, $n+p$, $n-p$.
If there was an $a_{5}$ we'd have a contradiction, because recall that all the $a_{i}$ have to be different. Unfortunately, we're only sure that four $a_{i}$ exist, so we can't really conclude anything. For me this looks like a dead end.

Route 2: Auxiliary Polynomial

We have to be a bit more subtle in using the Root Theorem. Ideally we'd want a polynomial to be zero somewhere. Unfortunately we aren't given that information with $f\left(x\right)$. However, we can set an auxiliary polynomial $g\left(x\right)$ to be exactly $f\left(x\right)-p$. That way, there are at least four distinct integers satisfying $g\left(x\right)=f\left(x\right)-p=0$.
Since it's getting tiring saying ``at least four distinct integers'', let's call the four distinct integers $a_{1}$, $a_{2}$, $a_{3}$, $a_{4}$. There could be more, but whatever we have to prove cannot depend on those extra ones. So we have $g\left(a_{1}\right)=0$, $g\left(a_{2}\right)=0$, and so on.
We can use the Root Theorem now: Since $g\left(a_{1}\right)=0$, we must have $\left(x-a_{1}\right)$ as a factor of $g\left(x\right)$. The same goes for $\left(x-a_{2}\right)$, $\left(x-a_{3}\right)$, and so on. This means that \[ g\left(x\right)=h\left(x\right)\left(x-a_{1}\right)\left(x-a_{2}\right)\left(x-a_{3}\right)\left(x-a_{4}\right) \] where $h\left(x\right)$ is the quotient polynomial (which also has integer coefficients!). Don't forget that we have to put $h\left(x\right)$ there, since $g\left(x\right)$ could have other polynomial factors apart from the four. Also note that at this point, we needed the fact that $a_{1}$, $a_{2}$, and so on are all different from each other.
This is all nice, but how does it bring us to what we want to show? Remember we want to show that $f\left(x\right)$ has no integer zeroes. That means no integer should satisfy $f\left(x\right)=0$, or equivalently $g\left(x\right)=-p$. But when we look at the equation above, we've shown that for any integer $n$, $g\left(n\right)$ is the product of five integers, four of which have to be different! There's no way we can write $-p$ like that, so we're done.
SOLUTION
Let the four distinct integers be $a_{1},a_{2},\ldots,a_{4}$ , and let $g\left(x\right):= f\left(x\right)-p$ , so that for $i=1,2,\ldots,4$ , we have $g\left(a_{i}\right)=0$. Then $\left(x-a_{i}\right)$ divides $g\left(x\right)$, and since the $a_{i}$ are distinct we have$g\left(x\right)=h\left(x\right)\left(x-a_{1}\right)\left(x-a_{2}\right)\left(x-a_{3}\right)\left(x-a_{4}\right)$ where $h\left(x\right)$ is a polynomial with integer coefficients. Now suppose for the sake of contradiction $f\left(x\right)$ has an integer root $n$ . Then \begin{eqnarray*} -p & = & f\left(n\right)-p\\ & = & g\left(n\right)\\ & = & h\left(n\right)\left(n-a_{1}\right)\left(n-a_{2}\right)\left(n-a_{3}\right)\left(n-a_{4}\right) \end{eqnarray*} Now we must have $h\left(n\right),\left(n-a_{i}\right)\in\left\{ \pm1,\pm p\right\} $ , and such that either $p$ or $-p$ (but not both or neither) shows up in the above product, and so that the $\left(n-a_{i}\right)$ are distinct. The five values cannot be so allocated, hence we have a contradiction.

Friday, February 6, 2015

Side Story 3-1: 4 + 1 Reasons Every Math Wizard needs a Spellbook

Image credit: Still from The Lord of the Rings: The Fellowship of the Ring (2001)
Collating and summarizing information on the fly can greatly reduce Ring identification time.
I couldn't resist the title pun, though I have a very strong opinion on the term "math wizard". (If you look at the etymology of the word wizard, "one who is wise" would seem to jive properly. But nowadays wizards are seen as dabblers in magic and unnatural arts, which couldn't be further from mathematics. Moreover, I think there's something remiss in labelling promising students in mathematics as "wizards" in their craft when competitive mathematics isn't exactly the mathematics people make careers [academic and otherwise] out of. High school / contest math is to real [i.e. modern] math as Gandalf's fireworks are to Gandalf's defeating the Balrog; in other words, they are in a completely different scale of wizardry. But I digress.)

Anyway, I think any serious mathlete should have a notebook to write the formulae and strategies (s)he picks up along the way, a Secret Book of Spells if you must.

Saturday, January 31, 2015

The Codex 3-1: How Many Shapes?

The Codex

This is the first of the articles in The Codex, which is an attempt at a comprehensive manual for intermediate to pre-Olympiad level mathletes. Accordingly, the Codex Articles will typically be produced in PDF format for easy download and printing.

This first one compiles our four-part journey through the surprisingly sophisticated art of shape counting.

Friday, January 9, 2015

Problem Post 3-1: How many Shapes, Part 4: Triangles

Problem Posts
Part 4 of 4 in How Many Shapes?

So last time we finished off the dreary onus of counting rectangles in rectangles. Now for something completely different.

CAN WE DO BETTER?
  • What if the original grid were a rectangle, instead of a square? Or an irregular figure?
  • What if we were counting rectangles instead of squares?
  • What if some of the grid 'wires' are missing?
  • What if we're working on a triangular grid, counting triangles? Does our logic still apply?

3 Triangles!

This one was surprising to say the least. I had hoped to find a straightforward formula like in counting rectangles, but it turns out triangle counting is nastier than one might think!

Friday, December 26, 2014

Problem Post 2-6: How Many Shapes, Part 3: Rectangles in Not-Rectangles

Problem Posts
Part 3 of 4 of How Many Shapes?

While it would be far more fun for me if I jumped from topic to topic, I believe I owe it to you, dear readers, to flog this horse until it's brain dead. Completeness is a virtue.

So last time we finished off the case where we count rectangles in rectangles, even when some 'matchsticks' or grid wires are missing. Now onwards to rectangles in non-rectangles.

CAN WE DO BETTER?
  • What if the original grid were a rectangle, instead of a square? Or an irregular figure?
  • What if we were counting rectangles instead of squares?
  • What if some of the grid 'wires' are missing?
  • What if we're working on a triangular grid, counting triangles? Does our logic still apply?

2 Rectangles in Non-Rectangles

This is ad hoc land. The base technique would again be to count one-by-one, but as we will see there are tricks for certain special irregular figures.

Saturday, December 13, 2014

Problem Post 2-5: How many Shapes, Part 2: Rectangles in Rectangles

Problem Posts
Part 2 of 4 of How Many Shapes?
So in my previous Miscellaneous post, we solved a fairly simple Internet puzzle, counting the number of squares in a square grid. But now, we ask ourselves if we can do more:

CAN WE DO BETTER?
  • What if the original grid were a rectangle, instead of a square? Or an irregular figure?
  • What if we were counting rectangles instead of squares?
  • What if some of the grid 'wires' are missing?
  • What if we're working on a triangular grid, counting triangles? Does our logic still apply?

Saturday, December 6, 2014

Problem Post 2-4: On the Escalation of P*cking Problems

Problem Posts
Image Credit: "Cardboard Box City" by James Nash. Licensed under CC BY-NC-SA 2.0.
No, I don't think they'll make you solve this problem in fifteen seconds mentally.

You may wonder why I used the P-word for something as "simple" as packing boxes. I mean, the question is straightforward... right?

THE PROBLEM
You have a big rectangular pallet upon which you must place identical rectangular boxes. You can't stack, collapse, or overlap boxes. The sides of the boxes have to parallel to one of the sides of the pallet. What's the maximum number of boxes you can place?

It's a familiar but unremarkable question, especially for many mathletes who've had to do it under time pressure. (Fifteen seconds mental? Easy!) And the real-life applications are obvious - putting things into shipping containers, for example.