OFFSET
1,3
COMMENTS
Sums of diagonal entries in A011847.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = Sum_{k=0..floor(n/2)} floor(C(n-k,k)/(k+1)).
MAPLE
a:=n->add(floor(C(n-k, k)/(k+1)), k=0..n/2);
MATHEMATICA
Table[Sum[Floor[Binomial[n-k, k]/(k+1)], {k, 0, n/2}], {n, 40}] (* Harvey P. Dale, Apr 02 2019 *)
PROG
(Magma)
A095719:= func< n | (&+[Floor(Binomial(n-k, k)/(k+1)): k in [0..Floor(n/2)]]) >;
[A095719(n): n in [1..40]]; // G. C. Greubel, Oct 21 2024
(SageMath)
def A095719(n): return sum(binomial(n-k, k)//(k+1) for k in range(n//2+1))
[A095719(n) for n in range(1, 41)] # G. C. Greubel, Oct 21 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Mike Zabrocki, Jul 08 2004
STATUS
approved