OFFSET
3,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 3..1000
FORMULA
a(n) = n! * [x^n*y^2] Product_{n>=1} (1+y*x^n/n!).
a(n) = Sum_{i=1..floor((n-1)/2)} binomial(n,i). - Wesley Ivan Hurt, Nov 15 2017
a(n) ~ 2^(n-1). - Vaclav Kotesovec, Dec 11 2020
MAPLE
b:= proc(n, i, t) option remember; `if`(t>i or t*(t+1)/2>n
or t*(2*i+1-t)/2<n, 0, `if`(n=0, 1, b(n, i-1, t)+
`if`(i>n, 0, b(n-i, i-1, t-1)*binomial(n, i))))
end:
a:= n-> b(n$2, 2):
seq(a(n), n=3..40);
MATHEMATICA
Table[Sum[Binomial[n, i], {i, Floor[(n - 1)/2]}], {n, 3, 35}] (* Michael De Vlieger, Nov 15 2017 *)
PROG
(Magma) [(&+[Binomial(n, j): j in [1..Floor((n-1)/2)]]): n in [3..40]]; // G. C. Greubel, Jul 14 2024
(SageMath)
def A272514(n): return sum( binomial(n, j) for j in range(1, 1+((n-1)//2)))
[A272514(n) for n in range(3, 31)] # G. C. Greubel, Jul 14 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, May 01 2016
STATUS
approved