login
A220663
Irregular table: row n (n>=1) consists of numbers 0..A084556(n)-1.
4
0, 0, 1, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3
OFFSET
1,8
COMMENTS
The term a(n) tells from which position (zero-based, starting from the left hand end of permutation) of the corresponding permutation in A030298 the term A030298(n) should be picked from.
FORMULA
a(n) = n - A220662(n).
a(n) = A220694(n)-1.
EXAMPLE
Rows of this irregular table begin as:
0;
0, 1;
0, 1;
0, 1, 2;
0, 1, 2;
...
PROG
(Scheme): (define (A220663 n) (- n (A220662 n)))
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Antti Karttunen, Dec 18 2012
STATUS
approved