NSW Number

DOWNLOAD Mathematica Notebook

An NSW number (named after Newman, Shanks, and Williams) is an integer m that solves the Diophantine equation

 2n^2=m^2+1.
(1)

In other words, the NSW numbers m index the diagonals of squares of side length n having the property that the squares of the diagonal d=sqrt(2)n equals one plus a square number m^2. Such numbers were called "rational diagonals" by the Greeks (Wells 1986, p. 70). The name "NSW number" derives from the names of the authors of the paper on the subject written by Newman et al. (1980/81).

The first few NSW numbers are therefore m=1, 7, 41, 239, 1393, ... (OEIS A002315), which correspond to square side lengths n=1, 5, 29, 169, 985, 5741, 33461, 195025, ... (OEIS A001653). The values indexed by m and n therefore give 2, 50, 1682, 57122, ... (OEIS A088920).

Taking twice the NSW numbers gives the sequence 2, 14, 82, 478, 2786, 16238, ... (OEIS A077444), which is exactly every other Pell-Lucas number.

The first few prime NSW numbers are m=7, 41, 239, 9369319, 63018038201, 489133282872437279, ... (OEIS A088165), corresponding to indices k=1, 2, 3, 9, 14, 23, 29, 81, 128, 210, 468, 473, 746, 950, 3344, 4043, 4839, 14376, 39521, 64563, 72984, 82899, 84338, 85206, 86121, ... (OEIS A113501).

The following table summarizes the largest known NSW primes, where the indices k correspond via k=(k^'-1)/2 to the indices k^' of prime half-Pell-Lucas numbers that are odd.

kdecimal digitsdiscovererdate
6456349427E. W. WeissteinMay 19, 2006
7298455874E. W. WeissteinAug. 29, 2006
8289963464E. W. WeissteinNov. 16, 2006
8433864566E. W. WeissteinNov. 26, 2006
8520665230E. W. WeissteinDec. 10, 2006
8612165931E. W. WeissteinJan. 25, 2007

Interestingly, the values m/n give every other convergent to Pythagoras's constant sqrt(2).

Explicit formula for m and n are given by

m=((1+sqrt(2))^(2k-1)+(1-sqrt(2))^(2k-1))/2
(2)
n=((2+sqrt(2))^(2k-1)+(2-sqrt(2))^(2k-1))/(2^(k+1))
(3)

for positive integers k (Ribenboim 1996, p. 367). A recurrence relation for m=S(k) is given by

 S(k)=6S(k-1)-S(k-2)
(4)

with S(0)=1 and S(1)=7.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.