login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A212988
Number of (w,x,y) with all terms in {0,...,n} and 4*w = x+y.
2
1, 1, 2, 4, 7, 9, 12, 16, 21, 25, 30, 36, 43, 49, 56, 64, 73, 81, 90, 100, 111, 121, 132, 144, 157, 169, 182, 196, 211, 225, 240, 256, 273, 289, 306, 324, 343, 361, 380, 400, 421, 441, 462, 484, 507, 529, 552, 576, 601, 625, 650, 676, 703, 729, 756, 784
OFFSET
0,3
COMMENTS
For a guide to related sequences, see A212959.
FORMULA
a(n) = 2*a(n-1)-a(n-2)+a(n-4)-2*a(n-5)+a(n-6).
G.f.: f(x)/g(x), where f(x) = 1 - x + x^2 + x^3
and g(x) = (1 + x + x^2 + x^3)(1-x)^3.
MATHEMATICA
t = Compile[{{n, _Integer}}, Module[{s = 0}, (Do[If[4 w == x + y, s = s + 1], {w, 0, n}, {x, 0, n}, {y, 0, n}]; s)]];
m = Map[t[#] &, Range[0, 70]] (* A212988 *)
CROSSREFS
Cf. A212959.
Sequence in context: A024193 A064550 A186357 * A344290 A064491 A120878
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 04 2012
STATUS
approved