Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A079756
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A079756 Operation count to create all permutations of n distinct elements using the "streamlined" version of Algorithm L (lexicographic permutation generation) from Knuth's The Art of Computer Programming, Vol. 4, chapter 7.2.1.2. Sequence gives number of interchanges in reversal step. +0
9
0, 0, 4, 29, 215, 1734, 15630, 156327, 1719637, 20635688, 268264004, 3755696121, 56335441899, 901367070474, 15323240198170, 275818323567179, 5240548147776545, 104810962955531052, 2201030222066152272 (list; graph; listen)
OFFSET

3,3

COMMENT

The asymptotic value for large n is 0.04308...*n! See also comment for A079884.

REFERENCES

See under A079884

LINKS

Hugo Pfoertner, FORTRAN program for lexicographic permutation generation

FORMULA

a(3)=0, a(4)=0, a(n) = n*a(n-1) + (n-1)*(floor((n-1)/2)-1) for n>=5.

For n>=3, a(n)=floor(c*n!-(n-3)/2) where c=lim n-->infinity a(n)/n!= 0.04308063481524377... - Benoit Cloitre (benoit7848c(AT)orange.fr), Jan 19 2003

MATHEMATICA

a[3] = 0; a[4] = 0; a[n_] := n*a[n - 1] + (n - 1)*(Floor[(n - 1)/2] - 1); Table[a[n ], {n, 3, 21}]

PROGRAM

FORTRAN program available at link

CROSSREFS

Cf. A079884, A079750, A079751, A079752, A079753, A079754, A079755.

Adjacent sequences: A079753 A079754 A079755 this_sequence A079757 A079758 A079759

Sequence in context: A100022 A001883 A135429 this_sequence A087809 A140526 A125808

KEYWORD

nonn

AUTHOR

Hugo Pfoertner (hugo(AT)pfoertner.org), Jan 16 2003

EXTENSIONS

More terms from Benoit Cloitre (benoit7848c(AT)orange.fr) and Robert G. Wilson v (rgwv(AT)rgwv.com), Jan 19 2003

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 October 15 09:18 EDT 2008. Contains 145015 sequences.


AT&T Labs Research