Ramanujan–Nagell equation


In mathematics, in the field of number theory, the Ramanujan–Nagell equation is an equation between a square number and a number that is seven less than a power of two. It is an example of an exponential Diophantine equation, an equation to be solved in integers where one of the variables appears as an exponent. It is named after Srinivasa Ramanujan, who conjectured that it has only five integer solutions, and after Trygve Nagell, who proved the conjecture.

Equation and solution

The equation is
and solutions in natural numbers n and x exist just when n = 3, 4, 5, 7 and 15.
This was conjectured in 1913 by Indian mathematician Srinivasa Ramanujan, proposed independently in 1943 by the Norwegian mathematician Wilhelm Ljunggren, and proved in 1948 by the Norwegian mathematician Trygve Nagell. The values of n correspond to the values of x as:-

Triangular Mersenne numbers

The problem of finding all numbers of the form 2b − 1 which are triangular is equivalent:
The values of b are just those of n − 3, and the corresponding triangular Mersenne numbers are:
for x = 1, 3, 5, 11 and 181, giving 0, 1, 3, 15, 4095 and no more.

Equations of Ramanujan–Nagell type

An equation of the form
for fixed D, A, B and variable x, n is said to be of Ramanujan–Nagell type. A result of Siegel implies that the number of solutions in each case is finite. The equation with A=1, B=2 has at most two solutions except in the case D=7 already mentioned. There are infinitely many values of D for which there are two solutions, including.

Equations of Lebesgue–Nagell type

An equation of the form
for fixed D, A and variable x, y, n is said to be of Lebesgue–Nagell type. This is named after Victor-Amédée Lebesgue, who proved that the equation
has no nontrivial solutions.
Results of Shorey and Tijdeman imply that the number of solutions in each case is finite. Bugeaud, Mignotte and Siksek solved equations of this type with A = 1 and 1 ≤ D ≤ 100. In particular, the extended equation of the original Ramanujan-Nagell equation
has the only positive integer solutions when x = 1, 3, 5, 11 and 181.