|
|
A212150
|
|
Number of (w,x,y,z) with all terms in {1,...,n} and w*x+y*z<=n^2.
|
|
2
|
|
|
0, 0, 9, 56, 196, 499, 1074, 2014, 3497, 5658, 8705, 12811, 18278, 25239, 34099, 45086, 58543, 74748, 94210, 117123, 144094, 175386, 211549, 252962, 300400, 353941, 414476, 482417, 558525, 643076, 737167, 840779, 955262, 1080987
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
|
|
LINKS
|
|
|
MATHEMATICA
|
t = Compile[{{n, _Integer}}, Module[{s = 0},
(Do[If[w*x + y*z <= n^2, s = s + 1],
{w, 1, #}, {x, 1, #}, {y, 1, #}, {z, 1, #}] &[n]; s)]];
Map[t[#] &, Range[0, 40]] (* A212150 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|