Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A079755
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A079755 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 loop repetitions in reversal step. +0
9
0, 3, 23, 148, 1054, 8453, 76109, 761126, 8372436, 100469287, 1306100803, 18285411320, 274281169898, 4388498718473, 74604478214169, 1342880607855178, 25514731549248544, 510294630984971051 (list; graph; listen)
OFFSET

3,2

COMMENT

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

REFERENCES

See under A079884.

LINKS

Hugo Pfoertner, FORTRAN program for lexicogaphic permutation generation

FORMULA

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

a(n)=floor(c*n!-(n-1)/2) for n>4, where c=lim n -> infinity a(n)/n!= 0.209747301481910445... - Benoit Cloitre (benoit7848c(AT)orange.fr), Jan 19 2003

MATHEMATICA

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

PROGRAM

FORTRAN program available at link

CROSSREFS

Cf. A079884, A079750, A079751, A079752, A079753, A079754, A079756, A079885.

Sequence in context: A081413 A089950 A057835 this_sequence A006184 A164536 A037789

Adjacent sequences: A079752 A079753 A079754 this_sequence A079756 A079757 A079758

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.005 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 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research