login
A220659
Irregular table: row n (n >= 1) consists of numbers 0..A084558(n).
5
0, 0, 1, 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, 0, 1, 2, 3, 0, 1, 2, 3
OFFSET
0,6
COMMENTS
The term a(n) gives the position (zero-based, starting from the left hand end of permutation) of a corresponding permutation A055089 and A060117/A060118 from which the term A055089(n) or A060118(n) is to be picked.
FORMULA
a(n) = n - A220657(A220658(n)).
EXAMPLE
Rows of this irregular table begin as:
0;
0, 1;
0, 1, 2;
0, 1, 2;
0, 1, 2;
0, 1, 2;
0, 1, 2, 3;
The term 2 occurs four times in A084558, in positions 2, 3, 4 and 5. Thus rows 2, 3, 4 and 5 (zero-based) of this irregular table are all 0,1,2.
PROG
(Scheme): (define (A220659 n) (- n (A220657 (A220658 n))))
CROSSREFS
Sequence in context: A308009 A010872 A220663 * A025858 A237451 A215592
KEYWORD
nonn,tabf
AUTHOR
Antti Karttunen, Dec 18 2012
STATUS
approved