OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 392
J. R. Stembridge, Some combinatorial aspects of reduced words in finite Coxeter groups, Trans. Amer. Math. Soc. 349 (1997), no. 4, 1285-1332.
FORMULA
a(n) = (n-1)!* (n^2+3*n-2)/2. - Gary Detlefs, May 22 2010
MAPLE
seq((n-1)!* (n^2+3*n-2)/2, n = 1..19); # Gary Detlefs, May 22 2010
MATHEMATICA
Table[(n + 1)!/2 + (n - 1)*(n - 1)!, {n, 40}] (* Vladimir Joseph Stephan Orlovsky, Feb 23 2012 *)
PROG
(Magma) [Factorial(n+1)/2+(n-1)*Factorial(n-1): n in [1..25]]; // Vincenzo Librandi, Jun 07 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved