cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A079751 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 cases where the j search loop runs beyond j=n-3.

Table of values

n a(n)
3 0
4 1
5 6
6 37
7 260
8 2081
9 18730
10 187301
11 2060312
12 24723745
13 321408686
14 4499721605
15 67495824076
16 1079933185217
17 18358864148690
18 330459554676421
19 6278731538852000
20 125574630777040001
21 2637067246317840022
22 58015479418992480485
23 1334356026636827051156

List of values

[0, 1, 6, 37, 260, 2081, 18730, 187301, 2060312, 24723745, 321408686, 4499721605, 67495824076, 1079933185217, 18358864148690, 330459554676421, 6278731538852000, 125574630777040001, 2637067246317840022, 58015479418992480485, 1334356026636827051156]