OFFSET
2,2
COMMENTS
Row sums of A134433 starting from k=3.
a(n) = sum( (-1)^k*k*A008276(n,k), k=1..n-1).
a(n) = sum( (-1)^k*k*A054654(n,k), k=1..n-2).
For n >= 3, a(n) = number whose factorial base representation (A007623) begins with digits {n-1} and {n-2} followed by n-3 zeros. Viewed in that base, this sequence looks like this: 1, 21, 320, 4300, 54000, 650000, 7600000, 87000000, 980000000, A900000000, BA000000000, ... (where "digits" A and B stand for placeholder values 10 and 11 respectively). - Antti Karttunen, May 07 2015.
LINKS
FORMULA
a(n) = n! - (n-2)!.
G.f.: (1/G(0) - 1 - x)/x^2 where G(k) = 1 - x/(x - 1/(x - (k+1)/G(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Dec 13 2012
G.f.: (1+x)/x^2*(1/Q(0)-1), where Q(k)= 1 - 2*k*x - x^2*(k + 1)^2/Q(k+1); (continued fraction). - Sergei N. Gladkovskii, May 08 2013
G.f.: 2*Q(0), where Q(k)= 1 - 1/( (k+1)*(k+2) - x*(k+1)^2*(k+2)^2*(k+3)/(x*(k+1)*(k+2)*(k+3) - 1/Q(k+1))); (continued fraction). - Sergei N. Gladkovskii, May 08 2013
MATHEMATICA
Table[n! - (n - 2)!, {n, 2, 20}]
#[[3]]-#[[1]]&/@Partition[Range[0, 20]!, 3, 1] (* Harvey P. Dale, Aug 10 2023 *)
PROG
(Maxima) A213167(n):=n!-(n-2)!$
makelist(A213167(n), n, 2, 30); /* Martin Ettl, Nov 03 2012 */
CROSSREFS
Cf. A067318.
KEYWORD
nonn,easy
AUTHOR
Olivier Gérard, Nov 02 2012
STATUS
approved