OFFSET
1,4
FORMULA
A007318 * [1, 0, 0, 4, 0, 0, 7, 0, 0, 10, ...].
a(n) = Sum_{k=0..n/3} (3k+1)*binomial(n,3k). - Emeric Deutsch, May 03 2008
G.f.: x*(1 - 3x + 3x^2 + x^3)*(1-x)^2/((1-2x)^2*(1-x+x^2)^2). - R. J. Mathar, Nov 25 2008
EXAMPLE
a(4) = 5 = (1, 3, 3, 1) dot (1, 0, 0, 4) = (1 + 0 + 0 + 4).
MAPLE
a:=proc(n) options operator, arrow: sum((3*k+1)*binomial(n, 3*k), k=0..(1/3)*n) end proc: seq(a(n), n=0..30); # Emeric Deutsch, May 03 2008
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Apr 26 2008
EXTENSIONS
More terms from Emeric Deutsch, May 03 2008
STATUS
approved