|
|
A212087
|
|
Number of (w,x,y,z) with all terms in {1,...,n} and w^2+x^2=y^2+z^2.
|
|
4
|
|
|
0, 1, 6, 15, 28, 45, 66, 95, 132, 173, 210, 267, 320, 385, 458, 523, 600, 693, 786, 899, 1000, 1109, 1226, 1367, 1492, 1629, 1778, 1931, 2084, 2269, 2426, 2615, 2812, 3013, 3222, 3427, 3624, 3857, 4094, 4335, 4564, 4841, 5082, 5379, 5656, 5913
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
For a guide to related sequences, see A211795.
|
|
LINKS
|
|
|
MATHEMATICA
|
t = Compile[{{n, _Integer}}, Module[{s = 0},
(Do[If[w^2 + x^2 == y^2 + z^2, s = s + 1],
{w, 1, #}, {x, 1, #}, {y, 1, #}, {z, 1, #}] &[n]; s)]];
Map[t[#] &, Range[0, 60]] (* A212087 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|