login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A220660 Irregular table, where the n-th row consists of numbers 0..(n!-1). 5
0, 0, 1, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,6

COMMENTS

Used for computing A030298: a(n) tells the zero-based ranking of the n-th permutation in A030298 (A030299(n)) in the lexicographical ordering of all finite permutations of the same size.

LINKS

A. Karttunen, The rows 1..7 of the irregular table, flattened.

FORMULA

a(n) = n - A007489(A084556(n)-1) - 1.

a(n) = A220661(n)-1.

EXAMPLE

Rows of this irregular table begin as:

0;

0, 1;

0, 1, 2, 3, 4, 5;

MATHEMATICA

Table[Range[0, n!-1], {n, 5}]//Flatten (* Harvey P. Dale, Feb 27 2017 *)

PROG

(Scheme): (define (A220660 n) (- n (A007489 (-1+ (A084556 n))) 1))

CROSSREFS

Cf. A220661, A030298.

Sequence in context: A010875 A260187 A257687 * A257846 A203572 A195829

Adjacent sequences:  A220657 A220658 A220659 * A220661 A220662 A220663

KEYWORD

nonn,tabf

AUTHOR

Antti Karttunen, Dec 18 2012

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 26 01:08 EDT 2019. Contains 321479 sequences. (Running on oeis4.)