OFFSET
0,4
COMMENTS
For a guide to related sequences, see A212959.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,2,2,-1,-4,-1,2,2,0,-1).
FORMULA
a(n) = 2*a(n-2)+2*a(n-3)-a(n-4)-4*a(n-5)-a(n-6)+2*a(n-7)+2*a(n-8)-a(n-10).
G.f.: (2*x^3 + 6*x^4 + 15*x^5 + 13*x^6 + 4*x^7 - x^8 - x^9 )/(1 - 2*x^2 - 2*x^3 + x^4 + 4*x^5 + x^6 - 2*x^7 - 2*x^8 + x^10).
MATHEMATICA
t = Compile[{{n, _Integer}}, Module[{s = 0}, (Do[If[w < Max[w, x, y] - Min[w, x, y] < 2 w, s = s + 1], {w, 0, n}, {x, 0, n}, {y, 0, n}]; s)]];
m = Map[t[#] &, Range[0, 60]] (* A213400 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 12 2012
STATUS
approved