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.
The equation is named after Srinivasa Ramanujan, who conjectured that it has only five integer solutions, and after Trygve Nagell, who proved the conjecture. It implies non-existence of perfect binary codes with the minimum Hamming distance 5 or 6.
The equation is
2n-7=x2
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:-
x = 1, 3, 5, 11 and 181 .
The problem of finding all numbers of the form 2b - 1 (Mersenne numbers) which are triangular is equivalent:
\begin{align} & 2b-1=
y(y+1) | |
2 |
\\[2pt] \Longleftrightarrow& 8(2b-1)=4y(y+1)\\ \Longleftrightarrow& 2b+3-8=4y2+4y\\ \Longleftrightarrow& 2b+3-7=4y2+4y+1\\ \Longleftrightarrow& 2b+3-7=(2y+1)2 \end{align}
The values of b are just those of n - 3, and the corresponding triangular Mersenne numbers (also known as Ramanujan–Nagell numbers) are:
y(y+1) | |
2 |
=
(x-1)(x+1) | |
8 |
for x = 1, 3, 5, 11 and 181, giving 0, 1, 3, 15, 4095 and no more .
An equation of the form
x2+D=ABn
for fixed D, A, B and variable x, n is said to be of Ramanujan–Nagell type. The result of Siegel implies that the number of solutions in each case is finite. By representing
n=3m+r
r\in\{0,1,2\}
Bn=Bry3
y=Bm
r
r=0: (Ax)2=(Ay)3-A2D
r=1: (ABx)2=(ABy)3-A2B2D
r=2: (AB2x)2=(AB2y)3-A2B4D
The equation with
A=1, B=2
D=7
D=2m-1
An equation of the form
x2+D=Ayn
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
x2+1=yn
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 following generalization of the Ramanujan–Nagell equation:
yn-7=x2