OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
MAPLE
seq(n*2^(n-2) - `if`(type(n, even), 0, binomial(n-1, (n-1)/2)*n/2) , n=0..32); # Mark van Hoeij, May 12 2013
MATHEMATICA
Table[Sum[k Binomial[n, k], {k, 0, Floor[n/2]}], {n, 0, 40}] (* Harvey P. Dale, Nov 25 2012 *)
PROG
(PARI) a(n)=sum(k=0, n\2, k*binomial(n, k))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Jan 24 2012
STATUS
approved