OFFSET
1,3
COMMENTS
a(n) is also the maximum number of ways to place node pairs in an area formed by n 1 X 1 squares. - Theodore M. Mishura, Mar 20 2015
FORMULA
a(n) = A087214(n) - 1. - N. J. A. Sloane, Feb 15 2007
a(n) = Sum_{k=1..floor(n/2)} 2^k*Pochhammer(-n/2,k)*Pochhammer(1/2-n/2,k). - Theodore M. Mishura, Mar 16 2015
a(n) ~ n! * (exp(sqrt(2)) + (-1)^n * exp(-sqrt(2))) / 2^(n/2+1). - Vaclav Kotesovec, Mar 20 2015
MAPLE
seq(simplify(hypergeom([1, 1-n/2, 3/2-n/2], [], 2))*(n-1)*n/2, n=1..22); # Mark van Hoeij, May 12 2013
MATHEMATICA
nxt[{n_, a_, b_}]:={n+1, b, Binomial[n+1, 2](a+1)}; Transpose[NestList[nxt, {2, 0, 1}, 30]][[2]] (* Harvey P. Dale, Oct 12 2014 *)
PROG
(Magma) I:=[0, 1]; [n le 2 select I[n] else Binomial(n, 2)*(1+Self(n-2)): n in [1..35]]; // Vincenzo Librandi, Mar 17 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Allan L. Edmonds (edmonds(AT)indiana.edu), Feb 13 2007
EXTENSIONS
Edited by Vladeta Jovovic, Feb 20 2009
STATUS
approved