login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A085372
If n = 0 or 1 then a(n) = 1; if n = 2, 3 or 4 then a(n) = 0; otherwise a(n) = (n+1)*a(n-1)-(n-2)*a(n-2)-(n-5)*a(n-3)+(n-3)*a(n-4).
1
1, 1, 0, 0, 0, 2, 14, 102, 828, 7522, 75706, 836622, 10073824, 131300266, 1841921270, 27673138086, 443343106468, 7544813993618, 135925854199186, 2584491212811038, 51722014716352136, 1086739983701035418, 23919225571408768782, 550360567615450589302
OFFSET
0,6
COMMENTS
This is the same recurrence as A002464 but with different initial values.
MAPLE
A085372 := proc(n) options remember; if n <= 1 then 1 elif n <= 4 then 0 else (n+1)*A085372(n-1)-(n-2)*A085372(n-2)-(n-5)*A085372(n-3)+(n-3)*A085372(n-4); fi; end;
CROSSREFS
Cf. A002464.
Sequence in context: A144277 A037726 A037621 * A123525 A286310 A295865
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Aug 14 2003
STATUS
approved