Counterexamples to proof by example
There are a few standard examples of statements that appear to be true for a large number of examples but eventually fail. Three that come to mind are prime generating polynomials, the Borwein integrals, and Mercer's circle problem. I'll go into each of these briefly before discussing an example I just recently ran across.
Prime generating polynomialsEuler discovered that p(n) = n^2 - n + 41 is prime for n = 1, 2, 3, ..., 40 but not forn = 41.
Another example is that q(n) = n^2 - 79 n + 1601 is prime for n = 1, 2, 3, ..., 79 but not for n = 80.
Borwein integralsDefine
ThenB(n) = /2 forn= 1, 2, 3, ..., 6 but not forn= 7, though italmostholds forn = 7. More here.
Moser's circle problemThis may be the example you're most likely to see online. Letf(n) be the maximum number of regions you can divide a circle into by drawing lines betweenn points on the circle. The first five values are
1, 2, 4, 8, 16
and so you might reasonably expectf(6) = 32, but in factf(6) = 31.
New exampleThis morning I saw a post from @sphere_homotopy on X giving the following example. For smalln
gcd(n17 + 9, (n + 1)17 + 9) = 1.
And by small," I mean alln less than the 52-digit number
8424432925592889329288197322308900672459420460792433
Needless to say nobody discovered this by tryingn = 1, 2, 3, ... until they got to the value ofn above. You can find an explanation of the theory behind the example here. The same theory can be used to create more examples, such as the following.
It appears that
gcd(n19 + 3, (n + 1)19 + 3) = 1
for alln, and this is true forn < 25211925041.
The post Counterexamples to proof by example first appeared on John D. Cook.