OFFSET
1,3
COMMENTS
Note that squares are allowed to be zero.
From Wolfdieter Lang, Apr 09 2013: (Start)
These are the numbers for which A000164(a(n)) = 1.
a(n) is the n-th largest number which has a representation as a sum of three squares (square 0 allowed), in exactly one way, if neither the order of terms nor the signs of the numbers to be squared are taken into account. The multiplicity with order and signs taken into account are A005875(a(n)).
These numbers are a proper subset of A000378.
(End)
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
FORMULA
The sequence gives the increasingly ordered members of the set {m integer | A000164(m) = 1, m >= 0}.
EXAMPLE
From Wolfdieter Lang, Apr 09 2013 (Start)
a(1) = 0 because 0 = 0^2 + 0^2 + 0^2 and 0 is the first number m with A000164(m)=1.
a(8) = 8 = 0^2 + 2^2 + 2^2, the 8th largest number m for which A000164(m) is 1.
(End)
MATHEMATICA
lim=25; nLst=Table[0, {lim^2}]; Do[n=a^2+b^2+c^2; If[n>0 && n<lim^2, nLst[[n]]++ ], {a, 0, lim}, {b, a, Sqrt[lim^2-a^2]}, {c, b, Sqrt[lim^2-a^2-b^2]}]; Flatten[Position[nLst, 1]]
Select[Range[0, 235], Length@PowersRepresentations[#, 3, 2] == 1 &] (* Ray Chandler, Oct 31 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, May 24 2004
EXTENSIONS
0 added by T. D. Noe, Apr 09 2013
STATUS
approved