OFFSET
1,1
COMMENTS
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
FORMULA
a(n) is the n-th largest number m which satisfies: m = a^2 + b^2 + c^2, with integers a, b, and c, 0 < a < b < c, and gcd(a,b,c) = 1. Such a solution is denoted by the triple (a, b, c).
EXAMPLE
The first triples (a, b, c) are:
n=1, 14: (1, 2, 3),
n=2, 21: (1, 2, 4),
n=3, 26: (1, 3, 4),
n=4, 29: (2, 3, 4),
n=5, 30: (1, 2, 5),
n=6, 35: (1, 3, 5),
n=7, 38 (2, 3, 5),
n=8, 41: (1, 2, 6),
n=9, 42: (1, 4, 5),
n=10, 45: (2, 4, 5),
...
The first member with two different triples is a(18) = 62 with the triples (1, 5, 6), (2, 3, 7).
The first member with three different triples is a(36) = 101 with the triples (1, 6, 8), (2, 4, 9) and (4, 6, 7).
MATHEMATICA
nn = 150; t = Table[0, {nn^2}]; Do[If[GCD[a, b, c] == 1, n = a^2 + b^2 + c^2; If[n <= nn^2, t[[n]]++]], {a, nn}, {b, a + 1, nn}, {c, b + 1, nn}]; Flatten[Position[t, _?(# > 0 &)]] (* T. D. Noe, Apr 20 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Wolfdieter Lang, Apr 19 2013
STATUS
approved