# Examples of eventual counterexamples

Define an "eventual counterexample" to be

• $P(a) = T$ for $a < n$

• $P(n) = F$

• $n$ is sufficiently large for $P(n) = T\ \ \forall n \in \mathbb{N}$ to be a 'reasonable' conjecture to make.

where 'reasonable' is open to interpretation, and similar statements for rational, real, or more abstractly ordered sets for $n$ to belong to are acceptable answers.

What are some examples of eventual counterexamples, famous or otherwise, and do different eventual counterexamples share any common features? Could we build an 'early warning system' set of heuristics for seemingly plausible theorems?

edit: The Polya conjecture is a good example of what I was trying to get at, but answers are not restricted to number theory or any one area.

-
Your question seems interesting. Could you put in at least one elementary example to explain your formal definition? –  Colin Tan Feb 16 '10 at 13:18
I J Kennedy edited the title, changing "phenomena" to "phenomenon". Q Q J has now changed it back. I think "phenomenon" is better. It is an interesting phenomenon that there are eventual counterexamples. –  Gerry Myerson Mar 31 '11 at 0:42
By the way... shouldn't it be "The phenonenON of eventual counterexamples"? –  Mariano Suárez-Alvarez May 1 '11 at 5:48
The last 5 edits have consisted solely of toggling phenomena/phenomenon. Maybe we should just change the title to "Some eventual counterexamples". –  Gerry Myerson Jul 2 '14 at 0:55
There are lots of answers that basically contain only the name of the result and a link to a paper/webpage; I find them very unhelpful and would like to invite the authors to put at least a quick explanation in the text of their answers. In general, link-only answers are frowned upon on many stack exchange websites. –  Federico Poloni Oct 9 '14 at 14:30

It was once conjectured that factors of $x^n-1$ over the rationals had no coefficient exceeding 1 in absolute value. The first counterexample comes at $n=105$.

-
And in fact these coefficients (eventually!!) grow exponentially fast. See cecm.sfu.ca/~ada26/cyclotomic for a nice compendium of cyclotomic polynomials with enormous coefficients. –  Jacques Carette Feb 17 '10 at 3:53
I often heard this, but I've never seen a citation. Who conjectured that? –  Kevin O'Bryant Jun 9 '10 at 2:13
@Kevin, I don't know. I thought I once came across a reference to someone who computed up to $n=100$ in the year 1940 or so, stopped there and made the conjecture, but I haven't had any luck tracking it down. Noticing the breakdown at 105 is attributed to Migotti, 1883, and a proof that the coefficients can be arbitrarily large is due to Schur, published by Emma Lehmer in 1936, so if I'm right about the computations in 1940 then they were done by someone who was out of the loop and perhaps it's best not to embarrass any descendants by dredging up the reference. –  Gerry Myerson Jun 9 '10 at 3:32

The least positive integer for which the equality $$\left\lceil \frac{2}{2^{1/n}-1}\right\rceil = \left\lfloor \frac{2n}{\log 2} \right\rfloor.$$ fails is $n=777,451,915,729,368$. See http://oeis.org/A129935.

Another example that I like is the number $f(n)$ of inequivalent differentiable structures on $\mathbb{R}^n$. We have $f(n)=1$ if $n\neq 4$, while $f(4)=c$, the cardinality of the continuum.

-

The essence of the phenomenon of eventual counterexamples is that a certain pattern that holds among small numbers, turns out not to be universal. In the very best examples, such as the examples provided in the other answers, which I have enjoyed very much, what we have is an easily described property $P(n)$, whose first failing instance is very large in comparison. Indeed, the quality of answer might be measured by the difference between the size of the description of the property and the size of the first failing instance of it. When an easily described property holds for a very long time and then suddenly fails at some very large number, we are surprised. Therefore, to my mind the phenomenon of eventual counterexamples is intimately wrapped up with the possibility of providing very short descriptions of enormous numbers.

Surely we are all able easily to provide short descriptions of some very large numbers, such as $2^{100}$ or $2^{2^{100!}}$. In order to go beyond exponentiation and factorials, we might make use of other easily described functions exhibiting even more enormous growth. The Ackermann function, for example, defined by a simple one-line recursion, has diagonal values 1, 3, 7, 61, $2^{2^{2^{65536}}}$, with the next value $A(5)$ mind-bogglingly huge.

All such examples, short descriptions of large numbers, can be systematically transformed into instances of eventual counterexamples. For if $d$ is a short description of an enormous number $N$, then the property $P(k)=$"$k$ does not exhibit $d$" is easily described and holds for all values $k$ below $N$, but not of $N$ itself. Thus, it does very well by the quality measure I mentioned above.

So to my mind, the real issue is: what are the largest numbers that you can describe by a very short description?

This question can be made precise by requiring the description to be expressible in a particular formal language. Once the language is rich enough, however, this problem will certainly wade into interesting foundational waters, for the question of whether a given description actually succeeds in describing a number---for example, "the length of the shortest proof of a contradiction in ZFC"---may be independent of our basic axioms, even if it is enormous.

-
This is a great perspective –  Q.Q.J. Jun 15 '10 at 14:32
Yes, but it seems that one has to take into account also the difficulty of generating the underlying sequence. For example, the polynomial x^2−x+41 gives primes up to x=40, and 40 is not a big number by "absolute" measure, it is big compared to say other polynomials in generating primes. –  timur Oct 10 '10 at 3:15
2^2^2^65536 isn't mind-bogglingly huge'?! –  Bob Durrant May 20 '11 at 9:26
Another relevant blog post: scottaaronson.com/writings/bignumbers.html –  Ramsay Feb 25 '12 at 14:19

Strong Law of Small Numbers by Guy.

Steve

-
Item 13: D.H. & Emma Lehmer discovered that $2^n\equiv 3 (\mod n)$ for $n=4700063497,$ but for no smaller $n>1.$ –  Victor Protsak Jun 13 '10 at 1:15
Do you mean $n > 2$? Last I checked we have $2^2 \equiv 3 \pmod{2}$. –  David Mandell Freeman Jul 29 '10 at 20:28
@David Mandell Freeman: Huh? Isn't the left side even and the right side odd? –  Sridhar Ramesh Jul 3 '11 at 20:36

I'm trying to reconstruct an example I saw somewhere some years back. It goes something like this: $\gcd(n^5-5,(n+1)^5-5)=1$ is true for $n=1,2,\dots,1435389$ but fails for $n=1435390$ (when the gcd is 1968751).

-
I found a place which has this example, and it has many more examples: math.niu.edu/~rusin/known-math/96/smallnums –  Gerry Myerson Feb 17 '10 at 1:16
The resultant of $x^{17}+9$ and $(x+1)^{17}+9$ is some (large) integer, D. So there are polynomials $a(x)$ and $b(x)$ with integer coefficients and degree at most 16 such that $a(x)(x^{17)+9)-b(x)((x+1)^{17}+9)=D$. Now reduce modulo a prime p dividing D to get the equation $a(x)(x^{17)+9)=b(x)((x+1)^{17}+9)$ in Z_p[x]. Now $x^{17}+9$ has 17 distinct zeros in Z_p, and they can't all be zeros of a(x), so at least one of them is a zero of $(x+1)^{17}+9$, and you're done. –  Gerry Myerson Feb 17 '10 at 2:23
I don't understand why sometimes I get to see a math preview and sometimes not. I didn't see one when I made the comment above and it appears that I left out some closing braces, so some formulas are missing. I don't know how to edit my comment to put those braces in, but it doesn't matter, since my argument was more complicated than necessary anyway. If the resultant of two polynomials is divisible by some prime p, then the two polynomials have a common factor over the integers modulo p. These polynomials either split completely or are irreducible, so they must have a common linear factor. –  Gerry Myerson Feb 17 '10 at 5:17

In reference to the Prime Number Theorem (then Conjecture) both Gauss and Riemann further conjectured that $\pi(n) < Li(n)$ (where $\pi(n)$ is the number of primes from $1$ to $n$ and $Li(n)$ is the logarithmic integral, $\int_2^n \frac{1}{ln(t)}dt$).

Although it has been proven that this does not hold (Littlewood), that there exists some $n$ such that $\pi(n) \geq Li(n)$, the first $n$ where this takes place is so huge no-one has worked it out yet (allegedly). The number is known as Skewes' Number. It is known to be between $10^{14}$ and $1.39822\times 10^{316}$, and strongly believed to be about $1.397162914\times 10^{316}$. (References at the foregoing link.)

-

Freeman Dyson observed in my presence that the sequence with initial condition $a_0=3,a_1=0,a_2=2$, and recurrence $a_{n+3}=a_{n+1}+a_{n}$ almost has the property that $n\mid a_n$ if and only if $n$ is prime or 1, except that it doesn't.

He challenged us (grad students) to explain this near-phenomenon'', as it seems too close to being too good to be true to be coincidence. I've never seen an explanation.

Since this is Math Overflow, I'll give the spoiler, the first counterexample is $n=521^2=271441$.

-
a_n is the sum of the nth powers of the roots of x^3 = x + 1, so the divisibility follows from the fact that the Frobenius map permutes the roots of a polynomial. Are you asking for an explanation of the failure of the converse? I see no reason to expect the converse to be true. –  Qiaochu Yuan Jun 9 '10 at 2:44
I guess if anything needs an explanation it's why does it take so long for a counterexample to turn up. These numbers are (I think) the "Perrin pseudoprimes," see research.att.com/~njas/sequences/A013998 –  Gerry Myerson Jun 9 '10 at 3:40
Here is a related perspective. a_n counts the number of closed walks of length n on a certain graph G on 3 vertices; the cyclic group Z/nZ acts on these walks in the obvious way and the residue of a_n mod n is the number of walks lying in an orbit which is not of full size. When n is prime, orbits can either have size p or size 1 and the latter can't occur if there are no loops in G, which there aren't. When n is composite, the situation is much more complicated and it would be very surprising if the number of walks in non-full orbits was still divisible by n. –  Qiaochu Yuan Jun 9 '10 at 4:02
I think the spirit of the observation was akin to observing that $e^{\pi \sqrt{163}}$ is an integer, except that it isn't.'' Or that `the image of $0,1,\dots$, under $x\mapsto x^2-x+41$ is always prime, except that it isn't.'' Now, nobody would expect these criteria hold, but it is shocking that such simple expressions can come so close. And ultimately, there is deeper meaning to the observations. In the current phenomenon, no informed number theorist would suspect that the sequence detects primes perfectly, but it is shocking (to me, at least) that so simple a sequence comes so close. –  Kevin O'Bryant Jun 9 '10 at 15:52
@Qiaochu: Your argument is nice, but irrelevant to this minimal counterexample: 271441 is 521 squared. –  drvitek May 5 '11 at 1:43

A famous example is the isomorphism problem for integral group rings: suppose $G$ and $H$ are two finite groups of order $n$ such that $\mathbb{Z}G \cong \mathbb{Z}H$ does it mean that $G \cong H$? It was proved to be true for many cases and for many $n$'s and I think it was believed to be true in all cases. Nonetheless, eventually a counter example was found, see http://www.jstor.org/pss/3062112.

-

The Borwein Integrals are integrals of products of the sinc function. They exhibit certain "apparent patterns" which, while eventually breaking down, are actually indicative of something larger at work. (The example given on the Wikipedia page is a good one.)

-

Any finite loop space has the rational cohomology of a Lie group -- up to rank 65. From then on, there are counterexamples in every dimension. The smallest known dimension of a counterexampe is 1250, but whatever the actual smallest dimension is, counterexamples will occur in every dimension after that.

-
And, for the record, a finite loop space is a finite CW-complex $X$ that is homotopy equivalent to $\Omega Y$ for some space $Y$. –  André Henriques May 1 '11 at 21:53

The numbers 12, 121, 1211, 12111, 121111, etc., are all composite - until you get to the one with 138 digits, that's a prime. Saw this in a talk Lenny Jones gave at the New Orleans meeting earlier this month.

-
If you take a random sequence that grows like 12*10^n, the prime number theorem says you have something like a 13% chance of making it to 137 digits without seeing a prime. So, even if you've seen that the first 137 numbers of the form 12111...11 are composite, is the conjecture that all such numbers are composite really a reasonable one to make? –  Vectornaut Apr 21 '11 at 2:26
@Vectornaut, while I think your point is valid, it needs to be adjusted slightly, because the sequence is far from random. For example, in a pattern like that you won't get any primes unless the final digits are odd, and that increases the chance that any individual term is prime, which in turn decreases by quite a bit the chance that 137 terms are composite. –  gowers Apr 21 '11 at 11:10

In answering another MathOverflow question on Graham's number, I quoted from Harvey Friedman's Enormous Numbers in Real Life. Perhaps eventual counterexamples bear some relation to proof strength in certain systems of logic? Anyway, that example there could be rephrased to fit the current question.

Suppose I look at strings on three symbols, and given a word w of length n I look at subwords of the form (forgive the AWK notation) spc[i] = substr(w,i,i+1), i.e. those substrings starting at the ith character going for length i+1 characters. So spc[1] gets the first two characters of w, spc[2] == w[2]w[3]w[4], and so on.

I manage to find, for every n that I can compute, a string w_n that I use for w above such that for 0 < i < j < = n/2, spc[i] is not a subsequence of spc[j]. Others find such examples for even larger values of n. It would be reasonable for me to believe I could find arbitrarily long strings with this property.

Enter Harvey Friedman:

"THEOREM 8.1. Let k >= 1. There is a longest finite sequence x1,...,xn from {1,...,k} such that for no i < j <= n/2 is xi,...,x2i a subsequence of xj,...,x2j.

For k >= 1, let n(k) be the length of this longest finite sequence.

Paul Sally runs a program for gifted high school students at the University of Chicago.

He asked them to find n(1), n(2), n(3). They all got n(1) = 3. One got n(2) = 11. Nobody reported much on n(3). I then started to ask several mathematicians to give an estimate on n(3), some of them very famous. I got guesses like this: 60, 100, 150, 200, 300. They were not in combinatorics. Recently I asked Lovasz, telling him about these five guesses. He guessed 20,000.

THEOREM 8.2. n(3) > A(7,184). Lovasz wins, as his guess is closer to A(7,184) than the other guesses.

Recall the discussion about A(5,5) being incomprehensibly large. With the help of computer investigations (with R. Dougherty), I got:

THEOREM 8.3. n(3) > A(7198, 158386).

A good upper bound for n(3) is work in progress. Crude result: A(n,n) where n = A(5,5). "

Here A(n,n) is defined earlier in Friedman's paper as an Ackermann-like sequence. I suspect n(3) squishes Graham's number quite unlike a galactic black hole absorbing a prion or even a quark.

EDIT: I have been corrected; in the squishing hierarchy, n(4) squishes Graham's number, which squishes n(3). Again, unlike any physical realization I can imagine. END EDIT

The moral here is: "Don't jump to conclusions without a sufficiently strong proof system as back up".

-
In the above mentioned post on Graham's number, it was pointed out that Graham's number is bigger than n(3) but smaller than n(4). I apologize for getting the index wrong. –  Gerhard Paseman Feb 21 '10 at 1:42
-
And related, a counterexample to the Riemann hypothesis, if it exists, should be a prime example. –  Harald Hanche-Olsen Feb 16 '10 at 15:10
I think that Littlewood's result on the difference between the number of primes <x and li(x) was a surprise to many. –  paul Monsky Jun 9 '10 at 2:41

Let $a_1=1$, $a_{n+1}=(1+a_1^2+a_2^2+\dots+a_n^2)/n$. Are all terms integer? No, the first non-integer is $a_{44}$. I do not know neither reference (my source is private communication by Dmitry Rostovsky, and he does not remember where is it from), nor deep reason (if they exist) why first 43 terms are integer.

-
This is discussed in E15 of Guy, Unsolved Problems In Number Theory. He says F Gobel found the recursion yielded many integers, but Hendrik Lenstra found that first counterexample. Guy gives generalizations and many references. –  Gerry Myerson Oct 11 '10 at 3:11
Following up some of those references, I found a claim that $a_1=11$, $a_{n+1}=a_n(a_n^2+n)/(n+1)$ gives integers up to (but not beyond) $n=600$ or so. –  Gerry Myerson Oct 11 '10 at 5:57

Smallest counterexample to "There is no positive integer $n$ such that the concatenation of (the decimal representation of) $n$ with itself is a square" is $n=13223140496$, according to http://oeis.org/A102567; $1322314049613223140496 = 36363636364^2$.

-
Are all those 3s and 6s on the RHS an accident? –  David Mandell Freeman Jul 29 '10 at 20:33
Yes - and no. If you look at research.att.com/~njas/sequences/A106497 which is the sequence of right sides, they are all highly patterned numbers, related to the decimal expansions of $a/11$ and $a/7$ for various $a$. Whether they must be of this form, I do not know. –  Gerry Myerson Jul 29 '10 at 23:24
@DavidMandellFreeman If $(10^n+1) m$ is square for $m<10^n$, then $10^n+1$ must have a square divisor, say $10^n+1 = s^2 t$ and $m = r^2 t$. Then $\sqrt{10^n+1} = rst \approx 10^n (r/s)$. So the RHS will look very close to a decimal expansion of $r/s$. The first non-squarefree numbers of the form $10^n+1$ are $11^2 | 10^{11}+1$ and $7^2 | 10^{21}+1$. If you search further, I'm sure other denominators occur. –  David Speyer Mar 12 at 14:56

Here's another one, maybe mostly of historical interest. Fermat once conjectured that all numbers of the form $$p=2^{2^n}+1$$ are prime, which he had the means to verify up to $n=4$. It took more than 100 years until Euler showed that this fails at $n=5$. Today we still don't know if there are any other Fermat primes, so quite possibly Fermat's conjecture fails in the worst possible way.

-

Shapiro inequality: Let $x_1,x_2\dots x_n,x_{n+1},x_{n+2}$ be positive real numbers with $x_{n+1}=x_1$ and $x_{n+2}=x_2$. Now the inequality $\sum_{i=1}^{n} \frac{x_i}{x_{i+1}+x_{i+2}} \geq \frac{n}{2}$ must be true if $n<14$ or if $n\leq 23$ and $n$ is odd. So $n=14$ is the first $n$ where a counterexample can be found. I know that 14 is not that large a number, but remember that for each n we have a problem with a lot of freedom.

-

This is a bit tongue-in-cheek, but what about Special Relativity? In this case let property $P(x), x\in \mathbb{R}$ be the property that a given velocity $x$ is attainable. After all, Galilean Transforms allow one to change to a frame moving at an arbitrary velocity. Only Einstein's interpretation of the discoveries of Lorenz and Poincaré allowed for us to realize that property $P$ is only true if $x \in [-3 \times 10^8, 3 \times 10^8]$

-

-
-

One of my favourite examples in this context is the following: Define a sequence $(s_n)$ by $s_1=8$, $s_2=55$ and for $n\geq3$ $s_n$ the smallest integer such that $s_n/s_{n-1}>s_{n-1}/s_{n-2}$ so that $s_3=379$ as $379/55>55/8$. Then we have $s_n=6s_{n-1}+7s_{n-2}-5s_{n-3}-6s_{n-4}$ for $5\leq n\leq11056$ but not for $n=11057$ (I have lost track of the name of the person to whom this is due, but it is, nowadays, easily verified on a computer).

-
This may have come out of David Boyd's research on PV and Salem numbers. –  Gerry Myerson Jun 12 '10 at 23:53
I found the source; David W Boyd, Linear recurrence relations for some generalized Pisot sequences, Advances In Number Theory 333-340, Oxford University Press, 1993, MR 96i:11017. Boyd had several earlier papers on Pisot sequences, and this example may also be given in one of the earlier papers. –  Gerry Myerson Jun 15 '10 at 3:51

D. H. Lehmer showed that the first prime value of the Ramanujan tau-function, defined by $$\sum_{n=1}^\infty \tau(n) q^n = q \prod_{n=1}^\infty (1-q^n)^{24} = q - 24q^2 + 252q^3 - 1472q^4 + \dots,$$ occurs at the 63001st term. This is slightly less surprising when one knows that prime values can only occur for odd square inputs.

-
When does the first zero value occur? :P –  Victor Protsak Jun 12 '10 at 22:50

-
–  JBL Sep 3 '10 at 13:20

The first counterexample to the second Hardy-Littlewood conjecture is expected to occur somewhere between $10^{174}$ and $10^{1199}$ (at least, according to the references from the Wikipedia page), though it has not yet been definitively established that such a counterexample exists.

-
I fixed the link (hopefully...) –  Julien Melleray Mar 30 '12 at 6:48
• Borsuk's conjecture
• The Chinese hypothesis
• Euler's sum of powers conjecture
-
-

I'm surprised no one has mentioned Graeco-Latin Squares http://en.wikipedia.org/wiki/Graeco-Latin_square

Euler showed these exist for $n$ odd, or any multiple of 4. As none exist for $n=2$ or $6$, he conjectured that none exist for any $n\equiv 2 (mod 4)$.

As it happens, such exist for any $n\geq 3$ except $6$. This is quite a famous example, if small.

-

The De Giorgi conjecture is true for dimensions $\leq 8$. I guess this doesn't really count because De Giorgi himself only conjectured it for those dimensions based on the fact that Bernstein Theorem of minimal graphs is only true in dimensions $\leq 8$...

(To stay within the realm of geometry, if someone finds a counterexample to the positive mass theorem in high dimensions, that would be an example too.)

-

Robert Baillie has a paper on arxiv today (http://arxiv.org/abs/1105.3943) which shows how in principle one can construct examples of formulae which hold for $N=0,1,2,\ldots,k$, for arbirtrarily large $k$, then fail for all larger $N$.

His largest example holds with $k\approx \exp(\exp(\exp(\exp(\exp(\exp(e))))))$.

-
That's the same paper Seva linked to in his answer, posted about 3 hours earlier than this one. –  Gerry Myerson May 20 '11 at 10:47

R. M. Grassl and A. P. Mullhaupt, "Hook and Shifted Hook Numbers", Discrete Mathematics, Volume 79, Number 2, January (1990) pp. 153-167

"An infinite number of counter examples is provided for the conjecture that a shifted tableau shape is uniquely determined by its multiset of shifted hook numbers. Nevertheless, the previous conjecture of the first author that there was only one example of nonuniqueness is discussed and it is shown that it is «almost» true, based on computer search."

There were about five million examples before the counterexample, and approximately 1 mole of examples before the next counterexample is thought to occur.

-
The way I read the abstract (at sciencedirect.com/…), the 2nd counterexample came up somewhere in the first five million cases, and it was the 3rd counterexample that was expected to be a mole away. –  Gerry Myerson Feb 18 '10 at 23:16