A220660 Irregular table, where the n-th row consists of numbers 0..(n!-1).
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
Offset: 1
Examples
Rows of this irregular table begin as: 0; 0, 1; 0, 1, 2, 3, 4, 5;
Links
- Antti Karttunen, The rows 1..7 of the irregular table, flattened.
Programs
-
Mathematica
Table[Range[0,n!-1],{n,5}]//Flatten (* Harvey P. Dale, Feb 27 2017 *)
-
Scheme
(define (A220660 n) (- n (A007489 (-1+ (A084556 n))) 1))
Comments