In mathematics, specifically in number theory, a Cunningham number is a certain kind of integer named after English mathematician A. J. C. Cunningham.
Cunningham numbers are a simple type of binomial number – they are of the form
where b and n are integers ≥ 2, and b is not a perfect power. They are denoted C±(b, n).
The Cunningham numbers are:
The Cunningham numbers C−(b, n) are:
The Cunningham numbers C+(b, n) are:
It is conjectured that 26 is the only number that is both a Cunningham number C−(b, n) and a Cunningham number C+(b, n), this conjecture is equivalent to that 25 and 27 are the only two perfect powers differ by 2 (see Pillai's conjecture). Note that the proven Catalan's conjecture is that 8 and 9 are the only two perfect powers differ by 1.
Establishing whether or not a given Cunningham number is prime has been the main focus of research around this type of number. Two particularly famous families of Cunningham numbers in this respect are the Fermat numbers, which are those of the form C+(2, 2m), and the Mersenne numbers, which are those of the form C−(2, p) with prime p.
The prime Cunningham numbers are:
In fact, these numbers are exactly the generalized Fermat primes (which are those of the form C+(b, 2m) with even b) and the Mersenne primes (which are those of the form C−(2, p) with prime p), since if the Cunningham number C−(b, n) is prime, then b = 2 and n is prime, and if the Cunningham number C+(b, n) is prime, then b is even and n is power of 2, this is because the algebraic factorization of the binomial numbers, such as difference of two squares and sum of two cubes.
Cunningham worked on gathering together all known data on which of these numbers were prime. In 1925 he published tables which summarised his findings with H. J. Woodall, and much computation has been done in the intervening time to fill these tables.