login
Irregular table: row n (n >= 1) consists of numbers 0..A084558(n).
5

%I #13 Apr 02 2017 03:08:16

%S 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,

%T 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,

%U 1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3

%N Irregular table: row n (n >= 1) consists of numbers 0..A084558(n).

%C 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.

%H A. Karttunen, <a href="/A220659/b220659.txt">Rows 0..720 of the irregular table, flattened.</a>

%F a(n) = n - A220657(A220658(n)).

%e Rows of this irregular table begin as:

%e 0;

%e 0, 1;

%e 0, 1, 2;

%e 0, 1, 2;

%e 0, 1, 2;

%e 0, 1, 2;

%e 0, 1, 2, 3;

%e 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.

%o (Scheme): (define (A220659 n) (- n (A220657 (A220658 n))))

%K nonn,tabf

%O 0,6

%A _Antti Karttunen_, Dec 18 2012