|
|
A176408
|
|
a(n) = (n+1)*(a(n-1) +a(n-2)) n>1, a(0)=1,a(1)=0
|
|
6
|
|
|
1, 0, 3, 12, 75, 522, 4179, 37608, 376083, 4136910, 49642923, 645357996, 9035011947, 135525179202, 2168402867235, 36862848742992, 663531277373859, 12607094270103318
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
a(n) is one of two "basis" sequences for sequences of the form s(0)=a,s(1)=b,s(n)=(n+1)(s(n-1)+s(n-2)), n>1, the other being A006347.
s(n) = 1/2*(b-2*a)(n+2)! +(3*a-b)*floor(((n+2)!+1)/e).
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 3*floor(((n+2)!+1)/e) - (n+2)!.
a(n) = 3* A000166(n+1) - (n+2)!, where A000166 are the subfactorial numbers.
|
|
EXAMPLE
|
a(2)= 3*9-24=3, a(3)= 3*44-120=12, a(4)= 3*265-720=75, ...
|
|
MAPLE
|
seq(3*floor(((n+2)!+1)/E) - (n+2)!, n=1..20);
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|