Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A151881
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A151881 Sum (number of cycles)^2 over all n! permutations of [1..n]. +0
5
1, 5, 23, 120, 724, 5012, 39332, 345832, 3371976, 36135792, 422379792, 5349561984, 72996193152, 1067779243008, 16670798231040, 276718772067840, 4866610479828480, 90401487246167040, 1768784607499944960, 36360467544043008000, 783508616506603008000 (list; graph; listen)
OFFSET

1,2

COMMENT

Sum (number of cycles) over all n! permutations of [1..n] gives A000254.

LINKS

N. J. A. Sloane, Table of n, a(n) for n = 1..30

FORMULA

a(n) = (-1)^(n+1)*(Stirling1(n+1,2)-2*Stirling1(n+1,3)). [From Vladeta Jovovic (vladeta(AT)eunet.yu), Jul 22 2009]

MAPLE

with(combinat): with(numtheory):

M:=30;

for n from 1 to M do

p:=partition(n); s:=0:

for k from 1 to nops(p) do

# get next partition of n

# convert partition to list of sizes of parts

q:=convert(p[k], multiset);

for i from 1 to n do a(i):=0: od:

for i from 1 to nops(q) do a(q[i][1]):=q[i][2]: od:

# get number of parts

nump := add(a(i), i=1..n);

# get multiplicity

c:=1: for i from 1 to n do c:=c*a(i)!*i^a(i): od:

prop:=nump^2;

s:=s + (n!/c)*prop;

od;

lprint(n, s);

A[n]:=s;

od:

[seq(A[n], n=1..M)];

CROSSREFS

Cf. A000254, A151882.

Sequence in context: A005393 A162815 A033312 this_sequence A121636 A020032 A009321

Adjacent sequences: A151878 A151879 A151880 this_sequence A151882 A151883 A151884

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Jul 22 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 24 23:16 EST 2009. Contains 167481 sequences.


AT&T Labs Research