login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A033030 Derangement numbers d(n,3) where d(n,k) = k(n-1)(d(n-1,k) + d(n-2,k)), with d(0,k) = 1 and d(1,k) = 0. 5
1, 0, 3, 18, 189, 2484, 40095, 766422, 16936857, 424878696, 11929019931, 370616958810, 12624017298453, 467806833261468, 18736803171836919, 806593620214132254, 37139869052368612785, 1821430208283971761872, 94787073944153359107507, 5216859224231615866946466 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
Roland Bacher, Counting Packings of Generic Subsets in Finite Groups, Electr. J. Combinatorics, 19 (2012), #P7. - From N. J. A. Sloane, Feb 06 2013
FORMULA
Inverse binomial transform of A007559. E.g.f.: exp(-x)/(1-3*x)^(1/3). - Vladeta Jovovic, Dec 17 2003
a(n) = 3(n-1)(a(n-1)+a(n-2)), n>1. - Gary Detlefs, May 16 2010
a(n) ~ Gamma(2/3) * 3^(n + 1/2) * n^(n-1/6) / (sqrt(2*Pi) * exp(n + 1/3)). - Vaclav Kotesovec, Oct 31 2017
EXAMPLE
3= 3*(1+0), 18 =6*(0+3), 189=9*(18+3), 2484=12*(189+18)... [From Gary Detlefs, May 16 2010]
MAPLE
k := 3; d := proc(n) global k; option remember; if n = 0 then RETURN(1) end if; if n = 1 then RETURN(0) end if; k*(n - 1)*(d(n - 1) + d(n - 2)) end proc;
MATHEMATICA
d[n_, k_] := d[n, k] = k(n-1)(d[n-1, k] + d[n-2, k]);
d[0, _] = 1; d[1, _] = 0;
a[n_] := d[n, 3];
Table[a[n], {n, 0, 19}] (* Jean-François Alcover, Feb 20 2023 *)
CROSSREFS
d(n, 1) gives A000166, d(n, 2) gives A053871, d(n, 4) gives A088991, d(n, 5) gives A088992.
Sequence in context: A326088 A084879 A141118 * A279843 A355101 A355107
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Nov 02 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 03:08 EDT 2024. Contains 371918 sequences. (Running on oeis4.)