OFFSET
1,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
FORMULA
From Chai Wah Wu, Nov 27 2016: (Start)
a(n) = (2*n + 1 -(-1)^n)^2*(6*n + 1 -(-1)^n)*(2*n - 1 + (-1)^n)/128.
a(n) = a(n-1) + 4*a(n-2) - 4*a(n-3) - 6*a(n-4) + 6*a(n-5) + 4*a(n-6) - 4*a(n-7) - a(n-8) + a(n-9) for n > 9.
G.f.: -2*x^2*(3*x^5 + 5*x^4 + 28*x^3 + 16*x^2 + 17*x + 3)/((x - 1)^5*(x + 1)^4).
(End)
MATHEMATICA
a = 1; b = n; z1 = 35;
t[n_] := t[n] = Flatten[Table[w*z - x*y, {w, a, b}, {x, a, b}, {y, a, b}, {z, a, b}]]
c[n_, k_] := c[n, k] = Count[t[n], k]
u[n_] := Sum[c[n, 2 k], {k, -2*n^2, 2*n^2}]
v[n_] := Sum[c[n, 2 k - 1], {k, -2*n^2, 2*n^2}]
Table[u[n], {n, 1, z1}] (* A211064 *)
Table[v[n], {n, 1, z1}] (* A211065 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 31 2012
STATUS
approved