A212686 Number of (w,x,y,z) with all terms in {1,...,n} and 2|w-x|=n+|y-z|.
0, 0, 4, 8, 24, 40, 76, 112, 176, 240, 340, 440, 584, 728, 924, 1120, 1376, 1632, 1956, 2280, 2680, 3080, 3564, 4048, 4624, 5200, 5876, 6552, 7336, 8120, 9020, 9920, 10944, 11968, 13124, 14280, 15576, 16872, 18316, 19760, 21360, 22960
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (2, 1, -4, 1, 2, -1).
Crossrefs
Cf. A211795.
Programs
Formula
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.: (4*x^2 + 4*x^4)/(1 - 2*x - x^2 + 4*x^3 - x^4 - 2*x^5 + x^6).
Comments