A139172 a(n) = n!/2 - 1.
0, 2, 11, 59, 359, 2519, 20159, 181439, 1814399, 19958399, 239500799, 3113510399, 43589145599, 653837183999, 10461394943999, 177843714047999, 3201186852863999, 60822550204415999, 1216451004088319999, 25545471085854719999, 562000363888803839999, 12926008369442488319999
Offset: 2
Links
- Vincenzo Librandi, Table of n, a(n) for n = 2..300
Programs
-
Magma
[(Factorial(n)-2)/2: n in [2..25]]; // Vincenzo Librandi, Jul 20 2011
-
Mathematica
Table[(n! - 2)/2, {n, 2, 20}]
-
PARI
a(n)=n!/2-1 \\ Charles R Greathouse IV, Apr 07 2012
Formula
a(n) = Sum_{k=1..floor(n/2)} s(n,n-2*k), where s(n,k) are Stirling numbers of the first kind, A048994. - Mircea Merca, Apr 07 2012
a(n) = n*(a(n-1) + 1) - 1. - Bob Selcoe, Mar 28 2015
Comments