The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A024168 a(n) = n! * (1 + Sum_{j=1..n} (-1)^j/j). 11
1, 0, 1, 1, 10, 26, 276, 1212, 14736, 92304, 1285920, 10516320, 166112640, 1680462720, 29753498880, 359124192000, 7053661440000, 98989454592000, 2137497610752000, 34210080898560000, 805846718380032000, 14489879077804032000, 369868281883398144000 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
COMMENTS
a(n) is the number of permutations of n letters all cycles of which have length <= n/2, a quantity which arises in the solution to the One Hundred Prisoners problem. - Jim Ferry (jferry(AT)alum.mit.edu), Mar 29 2007
LINKS
FORMULA
From Michael Somos, Oct 29 2002: (Start)
E.g.f.: (log(x+1)-1)/(x-1).
a(n) = a(n-1)+a(n-2)*(n-1)^2, n>=2. (End)
a(0) = 1, a(n) = a(n-1)*n + (-1)^n*(n-1)!. - Daniel Suteu, Feb 06 2017
a(n) = n!*((-1)^n*LerchPhi(-1, 1, n+1) + 1 - log(2)). - Peter Luschny, Dec 27 2018
Limit_{n->oo} a(n)/n! = 1 - log(2) = A244009. - Alois P. Heinz, Jul 08 2022
MAPLE
a := n -> n!*((-1)^n*LerchPhi(-1, 1, n + 1) + 1 - log(2));
seq(simplify(a(n)), n=0..21); # Peter Luschny, Dec 27 2018
MATHEMATICA
f[k_] := (k + 1) (-1)^(k + 1)
t[n_] := Table[f[k], {k, 1, n}]
a[n_] := SymmetricPolynomial[n - 1, t[n]]
Table[a[n], {n, 1, 22}] (* A024168 signed *)
(* Clark Kimberling, Dec 30 2011 *)
PROG
(PARI) x='x+O('x^33); concat([0], Vec(serlaplace((x-log(1+x))/(1-x)))) \\ Joerg Arndt, Dec 27 2018
CROSSREFS
A075829(n) = a(n-1)/gcd(a(n-1), a(n)).
Sequence in context: A217583 A301606 A281510 * A043107 A039284 A045177
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Michael Somos, Oct 29 2002
a(0)=1 prepended and edited by Alois P. Heinz, Sep 24 2023
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 May 28 16:48 EDT 2024. Contains 372916 sequences. (Running on oeis4.)