Fast-growing functions

This is the first of a projected two-part series of articles about fast-growing functions.

The first part (‘fast-growing functions’) will introduce the concept of a fast-growing hierarchy of functions, use some notation for representing large numbers, make an IMO shortlist problem infinitely more difficult, and solve it by the well-ordering of the ordinal ε_0.

The second part (‘really fast-growing functions’) will describe Harvey Friedman’s n and TREE functions in detail, before exploring models of computation such as Turing machines and lambda calculus to reach and surpass the Busy Beaver function Σ.

Fast-growing hierarchy

We’ll define a sequence of increasingly fast-growing functions. For a relatively slow start, let’s begin with the function f_1(n) = n+2. Applying f_1 to the natural numbers gives the sequence {3, 4, 5, 6, 7, 8, …}.

Now, we use something called recursion to speed things up somewhat. For each positive integer α, we define f_(α+1)(n) = f_α(f_α(f_α(… f_α(2)…))), where there are n−1 copies of f_α. To avoid the ellipses, we can represent this as the recurrence  f_(α+1)(n+1) = f_α(f_(α+1)(n)) with initial condition f_α(1) = 2.

So, f_2(n) = 2n and f_3(n) = 2^n. We’ve very quickly moved from addition via multiplication to exponentiation, so it is clear that later terms will be quite fast indeed. The fourth function gives a tower 2^2^2^2^ … ^2 (evaluated from right to left) of n twos. Using Knuth’s up-arrow notation, this is written as 2↑↑n.

Most weak upper bounds encountered in elementary Ramsey theory (chapter 3 of MODA), such as Ramsey’s theorem and van der Waerden’s theorem, correspond to functions early on in this hierarchy (the naïve bound for van der Waerden is roughly f_4, if I remember correctly).

ramsey333

The largest complete graph which can be three-coloured without a monochromatic triangle, an object in Ramsey theory

We also get functions in Ramsey theory which grow more quickly than any of these functions. In the second part (really fast-growing functions), I’ll describe Friedman’s functions n and TREE, the latter being much faster than anything described in this first part.

Coins in boxes

A recent question on the International Mathematical Olympiad involves a sequence of six boxes, each of which initially contain one coin.

Initial conditions

There are two different operations you’re allowed to do:

  1. Remove a coin from box i and add two coins to box i + 1.
  2. Remove a coin from box i and swap the contents of boxes i + 1 and i + 2.

The question asks whether it’s possible to get 2012^(2012^2012) (or, in Knuth’s up-arrow notation, 2012↑↑3) coins in the final box. This may seem daunting at first, but it’s not too difficult. Iterating operation 1 allows you to get from (a, 0) to (0, 2a) quite easily. You can get from (a, 0, 0) to (a-1, 2, 0), then (a-1, 0, 4). Applying operation 2, the next step is (a-2, 4, 0), then (a-2, 0, 8), and so on. Recursively, we can get to (0, 2^a, 0).

With more boxes, we can go even further, and get from (a, 0, 0, 0) to (0, 2↑↑a, 0, 0). This pattern generalises in the obvious way.

It transpires that we can indeed get 2012↑↑3 coins in the sixth box. James Cranch asked Maria Holdcroft how many boxes are required to get 2012↑↑(2012↑↑3) coins in the final box, expecting the answer to be seven. She demonstrated that, surprisingly, it’s possible with merely six boxes. Try it yourself!

The Ackermann function

We’ve defined functions f_α for all positive integers α. Can we find a function which eventually overtakes all of them? Indeed, we can; let f_ω(n) = f_n(n). This creates the ‘diagonal’ sequence {3, 4, 8, 65536, 2↑↑↑5, 2↑↑↑↑6, …}. We’ll call this the Ackermann function, although different authors use different definitions. For instance, the Ackermann function could be defined as the maximum number of coins you can get from an initial configuration of n boxes each containing one coin, and it would have a very similar growth rate to every other definition of the Ackermann function.

By the way, ω is the first ordinal greater than all integers. Ordinals are a type of infinity, which I mentioned briefly when discussing combinatorial game theory. I mentioned them again in connection with fusible numbers, and they’re even more important here. You can consider ω to be the limit of the sequence 1, 2, 3, 4, 5, … of natural numbers. The first few ordinals are {1, 2, 3, 4, …, ω, ω+1, ω+2, …, 2ω, 2ω+1, …, 3ω, …, 4ω, …, ω^2, …}, where the ellipses indicate omission of infinitely many terms! We’ll use ordinals as subscripts for this fast-growing hierarchy of functions.

By recursion on f_ω, we can define a new function f_(ω+1). The first few terms are {2, 4, 65536, 2↑↑↑↑…↑↑↑↑65536}, where there are 65534 up-arrows in the fourth term. The largest number used in a serious mathematical proof, Graham’s number, is roughly the 67th term in this sequence produced by f_(ω+1). It is the upper bound for a particular question in Ramsey theory (the corresponding lower bound is 12).

Proceeding in this manner, we can recurse to get f_(ω+2), f_(ω+3), …, and then diagonalise to get f_(2ω). Technically, this should be written f_(ω.2), since ordinal multiplication is not commutative, but notational abuse is common in the world of ordinals. Repeating this process, we get f_(ω.3), f_(ω.4), et cetera, and we can diagonalise to get f_(ω^2). It’s not too hard to see that all ‘polynomials’ (ordinals below ω^ω) can be obtained in this way. Finally, another diagonalisation gives us f_(ω^ω).

Going further, you can get ω^ω^ω, ω^ω^ω^ω and so on. The supremum of these (writing this as ω↑↑↑2 is a gross abuse of notation which will enrage most pure mathematicians) is called ε_0, and is the smallest fixed point of n → ω^n. We’ll get to this later.

Like a C8

Every year, lots of problems are submitted for inclusion in the International Mathematical Olympiad. The reasonably good ones get onto a shortlist, of which six are cherry-picked for the test itself. There are some gems on the shortlist which are neglected, such as this particular question from Austria (classified as C8, i.e. the hardest combinatorics problem on the shortlist in 2009):

For any integer n ≥ 2, we compute the integer h(n) by applying the following procedure to its decimal representation. Let r be the rightmost digit of n.

  • If r = 0, we define h(n) = n/10, i.e. we remove the final trailing zero.
  • Otherwise, if r is non-zero, we split the decimal representation of n into a maximal right part R that consists solely of digits not less than r. The remaining left part is called L (either empty or terminates in a digit less than r). We then define h(n) by concatenating L followed by 2 copies of R−1. For instance, with the number n = 17151345543, we get L = 17151, R = 345543, and h(n) = 17151345542345542.

Prove that, for an arbitrary integer n ≥ 2, repeated application of h eventually reaches 1 in a finite number of steps.

For example, we get 2 → 11 → 1010 → 101 → 1000 → 100 → 10 → 1.

This is non-trivial (hence its rating as C8). Still, we can improve it to make it so much harder! Instead of appending 2 copies of R−1, we append c copies, where c initially begins at 2 and increments every time we apply this process. So, the second time, we append 3 copies of R−1, and so on. This time, starting with n = 2 gives us a longer progression:

2 → 11 → 101010 → 10101 → 10100000 → 1010000 → 101000 → 10100 → 1010 → 101 → 1000000 → 100000 → 10000 → 1000 → 100 → 10 → 1.

Even though C8 was phrased in that way, it’s silly to think of the ‘numbers’ as integers rather than strings of decimal digits. Indeed, the restriction to decimal is arbitrary and unnecessary, and we should instead think of them as sequences of positive integers (the fourth term in the above process is {1,0,1,0,1} rather than the number 10101). Still, we’ll write them without commas for brevity.

Let’s invent a function g which maps strings to ordinals. We’ll map the string “0” to the ordinal g(“0”) = 1. If we have something like “3420001107000”, we’ll map the string to the ordinal ω^g(“231”) + 1 + 1 + 1 + ω^g(“00”) + 1 + ω^g(“6”) + 1 + 1 + 1. Specifically, we separate it into substrings of non-zero digits, decrement the digits in them, map them to ordinals, raise ω to the power of those ordinals, and add them all together. Applying this recursively, our string “3420001107000” is mapped to this ordinal:

3420001107000

Removing a terminal zero in a string reduces the corresponding ordinal by 1. Applying the other operation causes ω^n to be replaced with (ω^(n−1)).c, where c was defined in the question. This also results in the ordinal decreasing, since c < ω. In other words, are long process has an associated sequence of strictly decreasing ordinals.

Since the ordinals below ε_0 (and indeed all ordinals) are well-ordered, there is no infinite decreasing sequence of them. Hence, this sequence must terminate and reach 1 in a finite amount of time. QED.

It does, however, take a very long amount of time for the process to terminate. If we begin with a single digit n (remember, we’re not restricting ourselves to decimal, so n can be as large as we like), we can define a new function T(n) which gives the number of steps it takes for the process to terminate. For instance, T(1) = 0, T(2) = 16 and T(3) is large. To give an idea as to the size of T(3), the first few strings in the sequence beginning with “3” are:

3 → 22 → 212121 → 212120212120212120212120 → 21212021212021212021212 → 212120212120212120212111111 → 212120212120212120212111110212111110212111110212111110212111110212111110 → …

This function T grows at roughly the same rate as the function f_(ε_0) in our fast-growing hierarchy (by comparison, the original problem C8 only gives a pathetic growth rate around f_4). A very similar function (see Goodstein’s theorem) exceeds Graham’s number for n = 12. It wouldn’t surprise me if the same applies to our function T(n).

Goodstein’s theorem (and probably our modified question C8′) cannot be proved in Peano arithmetic (basic operations together with basic logic and finite induction). This is why C8′ is so much harder than C8, and consequently far too difficult to appear on an IMO. As far as I know, all IMO combinatorics problems can be proved in Peano arithmetic.

Posted in Fast-growing functions | Leave a comment

Infinite monkey theorem

It is widely acknowledged that an infinite number of monkeys sitting at computers typing randomly will almost surely produce a properly-LaTeXed copy of the complete works of Shakespeare. This statement, known as the ‘infinite monkey theorem’, has received a wide amount of coverage in popular culture.

Indeed, researchers actually experimented to see what would happen in reality with a finite number of monkeys. The theorem failed spectacularly, with the monkeys vandalising the typewriter, bombarding it with miscellaneous excreta, and typing mainly the letter ‘S’.

Deterministic variant

An alternative of this is where a machine is programmed to deterministically produce all possible outputs. For instance, if we want the machine to eventually produce all English words, one possible solution is to produce all 26 one-letter strings, followed by all 26² two-letter strings (in lexicographical order), then all 26³ three-letter strings, and so on ad infinitum. There was a very poor proposed question on the IMO, which asked for the Nth term of this sequence, where N was some arbitrary integer (somewhere between 10^10 and 10^20, I believe).

There is a formula, known as Tupper’s formula, which defines a subset of the set Z^2 of possible ordered pairs of integers (x,y). If you plot this subset on the plane, and look in the appropriate position, you’ll see a pixellated version of Tupper’s formula itself.

tupper

Essentially, this converts floor(y/17) into binary, partitions it into blocks of length 17, and writes them vertically from left to right. If you choose an appropriate (pretty large!) value of y, you can get any binary image of height 17 pixels. This includes the complete works of Shakespeare rendered as a long unbroken line.

Self-referential GoL pattern

Several years ago, I created a machine in Conway’s Game of Life which sequentially prints every possible binary image in a slowly-expanding octant of the plane. Unlike Tupper’s formula, the dimensions of the images are not limited. So, as time progresses, you’ll see gigapixel images of the Mona Lisa and huge renderings of the Mandelbrot set. Eventually, it would even show a picture of its own initial configuration, very much in the style of Tupper’s formula.

Its diameter grows at the slowest asymptotic rate possible, namely Θ(sqrt(log(t))). If the diameter of a pattern has a slower asymptotic growth rate, it would necessarily repeat the same state twice and settle into an infinite loop (thus stop growing). For cellular automata on a hyperbolic plane, this growth rate can theoretically be reduced to the impressively slow Θ(log(log(t))). Coincidentally, this is the same growth rate as the prime harmonic series:

prime-harmonic

I exploited this slow growth rate to design the sequence of Borwein integrals which fail after the 20479th term.

Posted in Uncategorized | 10 Comments

Treefoil

Knot theory is a branch of topology which considers the different embeddings of a cycle into three-dimensional Euclidean space, R^3. The simplest type of knot is the unknot, which is just an ordinary circle (which can be ‘thickened’ to form a torus):

unknot

The second simplest knot, the trefoil knot, is obtained by doing a bog-standard knot in a piece of string and connecting the ends. It took a surprising amount of work by topologists to show that the trefoil knot and unknot are distinct. The usual way to show that two knots are not equivalent is to develop some kind of invariant which is preserved when you do elementary operations (known as Reidemeister moves) to a planar drawing of a knot.

A miraculous cycle

A few minutes ago I discovered that it’s possible to create a cycle (walk which visits no vertex more than once, except the start/end vertex) in Z^3 (three-dimensional integer lattice) with the following properties:

  1. The three projections parallel to the unit vectors are all trees;
  2. The cycle has threefold rotational symmetry;
  3. The cycle is a trefoil knot.

The cycle is a beautiful beast I’ve named the Treefoil, inhabiting a 9 × 9 × 9 box. You can see the three projections and a three-dimensional perspective view below:

treefoil-optimised

Here is an isometric projection of an earlier version (11 × 11 × 11), which I since optimised to give the variant above.

Treefoil

For quite a while, a few people contemplated as to whether property 1 could be achieved. John Rickard, triple IMO gold medallist, was responsible for discovering the first example (the uniquely minimal solution). The problem featured on Professor Imre Leader’s More Introductory Problems sheet (question 9) and in the book Mathematical Mindbenders (by Peter Winkler), where a detailed history appears.

Note that every cycle in Z^3 satisfying property 1 yields a Borromean string with no balanced substring, and the converse is also true.

Hopf link

Much less beautiful (but almost as interesting) is a pair of interlinked cycles, such that the projections of the resulting Hopf link are all trees:

Hopf link

The Hopf link is so named because it features in the Hopf fibration (all great circles are linked in this manner). It’s not the only example of a pair of linked unknots; there are countably infinitely many, including the Whitehead link (the logo of the International Mathematical Olympiad).

By induction, you can create longer sets of linked cycles, homeomorphic to the Olympic rings. Whether you can subsequently connect the ends to form a link homeomorphic to the EGMO 2012 logo is another question entirely…

Posted in Uncategorized | 7 Comments

Cipher 7: Generalised RSA

The RSA cryptosystem is named after Rivest, Shamir and Adleman, who rediscoved it at MIT. It was created earlier by Clifford Cocks at GCHQ, but that information was classified. It is an example of a trapdoor cipher (others include elliptic curve cryptography), where different keys are required for encoding and decoding information.

Specifically, one encrypts some plaintext x into ciphertext y by using the formula y = x^e (mod N), where e and N are parts of the public key called the encoding exponent and modulus, respectively. By Euler’s extension of Fermat’s little theorem, it is possible to reverse this process if you have a number d (the decoding exponent); specifically, x = y^d (mod N). It is difficult to obtain d from e unless you know the prime factorisation of N.

I’m going to tell you that in this case the encoding exponent e = 65537 and the modulus N = 2^1024+1. The ciphertext y is the 308-digit integer given below:

70384453163117591654769573028818627011176266
85961097044944482079622303100714997743084870
17845889673059891358758676310163683929666686
34263955516926021379735957361166115633684498
03685254214632580655687518190933128197638060
14654501856631139244507713583948331391422982
45376589754270166865399155271952021664938169

Once you recover x, you’ll have to find some way of converting the integer into a message. The password for the secret area, by the way, is entirely in lower-case.

Posted in Ciphers | Leave a comment

BMO1 marked

My colleagues marked the first round of the British Mathematical Olympiad in Sidney Sussex College, Cambridge. You can view the leaderboard on Joseph’s website; well done to everyone who featured. There are quite a few new names on that list, which is rather promising since I may acquire actual mentees for the Advanced Mentoring Scheme.

Diophantine equations

Speaking of the AMS, one of the recent problems was a submission of mine: determine whether there exist solutions in positive integers to the Diophantine equation x^4 + y^6 = z^10. I understand that there is a non-empty intersection between people on that scheme and readers of cp4space, so I won’t reveal any answers here.

Instead, I’ll just talk about Diophantine equations of this form. If you only have three terms and the exponents have a common factor greater than 2, then no solutions exist due to Fermat’s last theorem. If the exponents are pairwise coprime, then it’s always possible to find solutions. (4,6,10) are neither of these, so I’ve not given away the solution to my problem!

My favourite Diophantine equation is x^4 + y^4 + z^4 = w^4. Essentially, this asks whether there exists a cuboid (rectangular parallelepiped) such that all three edge lengths and the triagonal are perfect squares. The smallest solution, discovered by Roger Frye using an exhaustive computer search, is 95800^4 + 217519^4 + 414560^4 = 422481^4.

As an exercise to the reader, you may want to prove that x^(4a) + y^(4b) + z^(4c) = w^(4d) also has solutions, where a,b,c,d are pairwise coprime integers.

Posted in Uncategorized | Leave a comment

Things go wrong eventually

The sinc function is important in signal processing for removing noise and reconstructing the original signal. It’s defined rather simply as sin(x)/x, so it’s surprising that it actually has its own special name (you have to be careful at x = 0, but the limit is sensibly defined as 1). As you can see in the formula and depiction below, sinc is an even function:

sinc

The integral under the curve evaluates to π:

Integral

A couple of people called Borwein noticed that this identity generalises:

Borwein

However, this breaks down once you get as far as the term containing sinc(x/15), at which point the integral evaluates to some horrible rational multiple of π instead!

borwein2

For a more impressive variation on this theme, replace the odd integers with non-composite numbers congruent to 1 (mod 4), i.e. 1 and primes of the form 4k + 1. The pattern continues up until the following point:

borwein3

Once you add the next term in this sequence, 493541, the pattern breaks down spectacularly; the resulting value is only an inconceivably microscopic distance from π.

The Polya conjecture

George Pólya conjectured that, for every N > 1, the proportion of numbers nN with an odd number of prime factors (including multiplicity) is at least ½. This is what the situation looks like for the first few positive integers (N up to 100000). If the blue line hits the horizontal axis, the conjecture breaks down:

polya

There seems to be some anomaly around N = 50000, where it is dangerously close to the horizontal axis. Fortunately, the zoom below demonstrates that there exists a hair’s breadth between them, so we’re safe … for now.

polya-zoom

Indeed, we’re actually safe for quite some time. We can go well into the hundreds of millions before encountering a difficulty. However, in the spirit of Murphy’s Law, we do eventually find a counter-example. The first proof demonstrated that there’s a counter-example somewhere around N = 10^361. Since then, exhaustive searches confirm that the first counter-example is N = 906150257 (which looks prime, but isn’t; it has a pair of 5-digit prime factors).

Skewes’ number

Since the time of Euler, it was known that approximately N/log(N) of the numbers below N are prime. Legendre refined this estimate to N/(log(N) − B), where B is a number called Legendre’s constant. It was first estimated to be about 1.08366, but has since been shown to be precisely 1!

A further refinement by Gauss gives the number of primes below N as the value of the following integral, called the logarithmic integral:

Logarithmic integral

Li(N) was conjectured to always be an underestimate of the number of primes below N. It transpires that eventually this breaks down. An initial upper bound for the first time at which this occurs is Skewes’ number, roughly e^e^e^e^e^e. We now know that the conjecture breaks down somewhere between 10^14 and 10^317.

Stupidly large integers

To quickly conclude, there are many questions in combinatorics (Ramsey theory, for instance), where even the lower bounds are mind-bogglingly massive. Harvey Friedman defines n(k) to be the length of the longest possible sequence {a_i} over a k-letter alphabet such that no block of letters {a_i, a_(i+1), …, a_2i} occurs as a subsequence of a later block {a_j, a_(j+1), …, a_2j}.

We have n(1) = 3, n(2) = 11, n(3) > A(7000) (where A is the Ackermann function) and n(4) > A(A(… A(1) …)), where there are A(187196) compositions of the Ackermann function. To put this in perspective, it dwarfs Graham’s number. Later terms are incredibly, overwhelmingly large.

Friedman then defined a function TREE, which grows so large that even TREE(3) is massively immense compared with n(4). I’ll discuss this later.

Posted in Uncategorized | 6 Comments

Triangling the square

Quite a few things are described as ‘X-ing the Y’, where X and Y are the interiors of piecewise algebraic curves. Probably the most famous of these is ‘squaring the circle’, which refers to the impossible task of constructing a circle of unit area using compass and straightedge (π is transcendental, thus cannot be constructed).

A more literal interpretation of ‘squaring the circle’ is to form the Cartesian product of a circle with itself. This leads to a Clifford torus (if you only square the boundary) or a duocylinder (if you square the interior). A Clifford torus can be obtained by beginning with a flat square of paper (formally, [-π,π]²) and rolling it up in four-dimensional space without deforming it. Remarkably, this can actually be realised in three-dimensional space as well in the form of a wrinkled torus:

Wrinkled torus

When we speak of polygonning the polygon, it usually means ’tiling the polygon with non-congruent polygons’. Squaring the square is the most familiar example, which was solved by considering an equivalent problem involving networks of resistors. A related problem asks for a dissection of a square into n Pythagorean triangles (right-angled with integer side lengths).

Clearly, n = 1 is trivially impossible, and the only dissection of a square into n = 2 right-angled triangles is not Pythagorean (the hypotenuse is irrational). It’s not too difficult to show that the case for n = 3 is similar. The first difficult problem is thus whether there exists a dissection where n = 4. There are three distinct sensible dissections:

triangle-square

Remarkably, the existence of any one of these dissections where all edges are rational implies the existence of the other two dissections. Note that the blue and green triangles remain untouched in the first two dissections; merely the red triangles (which are geometrically similar, as shown by a trivial angle chase) are scaled and rearranged. For the second and third diagrams, we have identical dissections of the square into three triangles (two right-angled and one acute-angled), and have simply dissected the third triangle in two different ways. When you convert between these representations, it is easy to see why any new edges created must also be rational (hint: similar triangles).

The third dissection seems to be the simplest to consider and is equivalent to the existence of integers {a,b,m,n} such that a² + (a+b)² = m² and b² + (a+b)² = n². It can be shown that a solution to this problem implies the existence of non-trivial rational points on a particular elliptic curve, of which there are none.

Penny Drastik’s optimal five-triangle dissection

It can indeed be done with five triangles (smallest example due to Penny Drastik, above), as mentioned here. An easy induction can be used to derive dissections into n triangles for all n ≥ 5.

Posted in Uncategorized | 4 Comments

Bolzano-Weierstrass

A particularly useful result in real analysis is, remarkably, applicable to combinatorics problems where reals are not even mentioned. It is the fabled Bolzano-Weierstrass theorem. The statement of the theorem is that ‘every bounded sequence has a convergent subsequence’. It is not too difficult to prove this directly from the least upper-bound axiom of the real numbers.

Lion-hunting and interval bisection

Suppose we have a large desert, in which we are chasing a lion. What is the best way to catch it? Unlike in the trailer of the Travelling Salesman movie, you’re not allowed to melt the sand and imprison your feline friend in a sea of glass. The solution is to erect a fence, splitting the desert into two halves. Then choose the half containing the lion, and repeat the process, halving the area again in which the lion can roam. Eventually, you can confine the lion to an arbitrarily small area.

The proof of the Bolzano-Weierstrass theorem is similar, but with an infinite number of lions. Each time we erect a fence, we can choose a smaller interval still containing infinitely many lions (real numbers). We get an infinite sequence of intervals, each one half as large as the previous one. For instance, the result may resemble this:

{[0, 1], [0, 1/2], [1/4, 1/2], [1/4, 3/8], [1/4, 5/16], [9/32, 5/16], …}

The supremum (least upper bound) s of {0, 0, 1/4, 1/4, 1/4, 9/32, …} is equal to the infimum (greatest lower bound) of {1, 1/2, 1/2, 3/8, 5/16, 5/16, …}. If we choose an arbitrary real in each of these intervals to form a new sequence, the nth real must be within 2^-n of the limit s. So, by definition, this sequence of reals converges.

The Bolzano-Weierstrass theorem applies to spaces other than closed bounded intervals; the closed unit ball in R^n is another example (same proof). We describe such spaces as sequentially compact.

Infinitely many descendants

Now that we have the Bolzano-Weierstrass theorem, it’s time to use it to prove stuff. Ordinary people would apply it to problems in real analysis (where it does indeed work), but it’s more fun to prove theorems in combinatorics. The first problem is this:

  • Ezekiel (thanks to James Cranch for that name) has infinitely many descendents. Given that each person has only finitely many (possibly zero) children, prove that there is an infinite sequence {c_0, c_1, c_2, …}, such that c_(n+1) is the child of c_n.

This seems obviously true, but it is not trivial to prove. Let’s inject all people into the interval [0, 1]. Specifically, we append ‘1111…112’ (with n ones) to the end of the decimal expansion of person A to create the decimal expansion of the nth child of person A. So, the 5th child of the 3rd child of the 7th child of Ezekiel is represented by the real number 0.111111121112111112.

ancestry

We can now apply Bolzano-Weierstrass to get an infinite convergent sequence of reals with limit s. The decimal expansion of s cannot end in a recurring sequence of ones (lest we have a person with infinitely many children). So, the decimal expansion instead must contain infinitely many twos, and thus correspond to an infinite sequence of descendents.

Tiling the plane with polyominoes

  • We have a set of polyomino prototiles capable of tiling arbitrarily large squares (with some optional overhang), such that the resulting tiling is k-colourable. Prove that it’s possible to tile the entire plane with these polyominoes and k-colour that tiling.

The general problem of determining whether a set of polyominoes can tile the plane is difficult, as we cannot guarantee a periodic tiling. Indeed, it’s undecidable. Similarly, it’s difficult (NP-hard for the finite case) to 3-colour a particular map. Hence, our proof must somehow use the partial tilings (such as the one below) to construct a full tiling of the entire plane.

overhang

As shown above, there is a 3-colourable tiling of a 7 by 7 square (with overhang) by some polyominoes. We can convert it into a real number in the interval [0, 1] by reading the sequence of colours along a spiral as digits (red = 1, orange = 2, yellow = 3):

spiral

So, we get the real number 0.2112321233112333121131331222333222111222332222112. Repeating for squares of sizes 2n+1, for all positive integers n, we obtain an infinite sequence of bounded real numbers. By Bolzano-Weierstrass, there is a convergent subsequence. Its limit corresponds to a 3-coloured tiling of the whole plane.

Leo Moser’s harmonic rectangle problem

Consider the set of rectangles of dimensions {1×(1/2), (1/2)×(1/3), (1/3)×(1/4), …}. Their total area is equal to 1, so it may be possible for them to tile a unit square (this is an unsolved problem). It has been shown that they can be packed into a square of side length 1.002, so there are logically three possibilities:

  1. They can tile a unit square.
  2. They can be packed into squares of side length 1 + ε for all ε > 0, but cannot tile the unit square.
  3. There exists some k, where 1 < k < 1.002, such that they cannot be packed into a k × k square.

With help from the Bolzano-Weierstrass theorem, we can actually eliminate the second of these possibilities. Specifically, for a given packing, we represent the nth rectangle by a triple (x, y, θ) of bounded reals giving the coordinates of the rectangle and its orientation. Concatenating all of these triples together gives a sequence {a_(1,1), a_(1,2), a_(1,3), …}. Repeat for another packing of a square with a smaller side length, {a_(2,1), a_(2,2), a_(2,3), …}. Repeat this infinitely many times for a decreasing sequence of side lengths converging to 1 (which we can do, assuming the second possibility). This gives a sequence of sequences.

By Bolzano-Weierstrass, we can take a subsequence where all of the a_(i,1)s converge. Then, within this subsequence, take a subseqence where all of the a_(i,2)s converge. Repeat ad infinitum. The limit gives a tiling of the unit square by these rectangles (Proof: assume otherwise, then there must be some pair of rectangles which overlap or overspill by some real value h > 0, whence we obtain a contradiction).

There is a related problem proposed by Coxeter, asking for the diameter d of the smallest circle into which discs of radii {1, 1/2, 1/3, …} can be packed. It transpires that the trivial lower bound of d = 3 can actually be attained. This is not a tiling, by the way, as the discs have a total area of π^3/6 whereas the large circle has an area of 9π/4 (convince yourself that the latter is substantially larger than the former).

Posted in Uncategorized | Leave a comment

Cipher 6: Puzzling

This particular cipher comes in two components (an image and some ciphertext), both of which you’ll need to successfully solve the challenge. If you delve deeper, you may find more hidden clues and secret images to help you decrypt this beast of a cipher.

Disassembled cube

Here is the ciphertext:

XIRTQQQJHYGGLUWZOPDTSLJVJVICZPDARQMHVVNCAZSA
LAYWEMYKBXHWNNFVVCYTPECOHSDPPVJQFXDSMOHSELYM

Enjoy yourself.

Posted in Ciphers | Leave a comment

Adenovirus

Unfortunately, I am currently being invaded by millions of microscopic icosahedra (at least, I hope this is the common cold). I apologise on their behalf for any slight lapse in the frequency of CP4space postings. Don’t worry; the sixth cipher was made ages ago and shall be automatically uploaded at the usual time of 00:01 GMT.

Another one of Ben and Hunter’s bizarre mathematical objects of the week was a function over two variables with a single stationary point, which is a local minimum but not a global minimum. It is difficult to envisage how this is possible (a volcano, for instance, has at least one saddle point on its rim). Counter-intuitively, the solution is actually relatively simple:

Hunter surface

If the three-dimensional surface is difficult to visualise, then you may prefer a contour plot instead. Observe that this is an even function, i.e. f(x,y) = f(-x,-y):

contours

Apparently, someone assumed the non-existence of such functions in a proof, and it took several hours before an example was discovered.

Posted in Uncategorized | Leave a comment