OFFSET
1,7
LINKS
Robert Israel, Table of n, a(n) for n = 1..3633
FORMULA
a(n) = Sum_{k=1..ceiling(2*n/3)/5} binomial(floor(n/3),k)*binomial(ceiling(2*n/3),5*k). - Robert Israel, Nov 12 2018
MAPLE
f:= proc(n) local n3, k;
n3:= floor(n/3);
add(binomial(n3, k)*binomial(n-n3, 5*k), k=1..(n-n3)/5);
end proc:
map(f, [$1..50]); # Robert Israel, Nov 11 2018
MATHEMATICA
Table[Sum[Binomial[Floor[n/3], k]*Binomial[n-Floor[n/3], 5*k], {k, 1, n-Floor[n/3]}], {n, 1, 40}] (* G. C. Greubel, Nov 11 2018 *)
PROG
(PARI) vector(40, n, sum(k=1, n-n\3, binomial(n\3, k)*binomial(n - n\3, 5*k))) \\ G. C. Greubel, Nov 11 2018
(Magma) [(&+[Binomial(Floor(n/3), k)*Binomial(n - Floor(n/3), 5*k): k in [1..(n - Floor(n/3))]]): n in [1..40]]; // G. C. Greubel, Nov 11 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved