OFFSET
1,3
COMMENTS
A(n,m) is the denominator of x and y in the m-th rational solution (x,y) to the equation x^2 + y^2 = n^2 given by Diophantus in Book II of Arithmetica.
REFERENCES
James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, pages 239, 253.
EXAMPLE
The array of the rational x-values begins as:
1/1, 4/5, 3/5, 8/17, 5/13, 12/37, ...
2/1, 8/5, 6/5, 16/17, 10/13, 24/37, ...
3/1, 12/5, 9/5, 24/17, 15/13, 36/37, ...
4/1, 16/5, 12/5, 32/17, 20/13, 48/37, ...
5/1, 4/1, 3/1, 40/17, 25/13, 60/37, ...
...
For n = 3 and m = 2: (12/5)^2 + (9/5)^2 = 3^2.
MATHEMATICA
A[n_, m_]:=Denominator[2n*m/(m^2+1)]; Table[A[n-m+1, m], {n, 12}, {m, n}]//Flatten
CROSSREFS
KEYWORD
AUTHOR
Stefano Spezia, Jul 23 2025
STATUS
approved
