|
|
A212969
|
|
Number of (w,x,y) with all terms in {0,...,n} and w != x and x > range(w,x,y).
|
|
3
|
|
|
0, 0, 2, 10, 26, 56, 100, 166, 252, 368, 510, 690, 902, 1160, 1456, 1806, 2200, 2656, 3162, 3738, 4370, 5080, 5852, 6710, 7636, 8656, 9750, 10946, 12222, 13608, 15080, 16670, 18352, 20160, 22066, 24106, 26250, 28536, 30932, 33478, 36140
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
For a guide to related sequences, see A212959.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = (n-1)*(2*n*(7*n-2) - 3*(-1)^n + 3)/24.
a(n) = 2*a(n-1) + a(n-2) - 4*a(n-3) + a(n-4) + 2*a(n-5) - a(n-6).
G.f.: f(x)/g(x), where f(x) = 2*(x^2)*(1 + 3*x + 2*x^2 + x^3) and g(x) = ((1-x)^4)*(1+x)^2.
|
|
MATHEMATICA
|
t = Compile[{{n, _Integer}}, Module[{s = 0},
(Do[If[w != x > (Max[w, x, y] - Min[w, x, y]),
s = s + 1],
{w, 0, n}, {x, 0, n}, {y, 0, n}]; s)]];
m = Map[t[#] &, Range[0, 60]] (* A212969 *)
m/2 (* integers *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|