login
After the first zero, numbers from 0 to A255071(n)-1 followed by numbers from 0 to A255071(n+1)-1, etc.
3

%I #7 Feb 14 2015 21:29:28

%S 0,0,0,1,0,1,2,0,1,2,3,4,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,9,10,11,

%T 12,13,14,15,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,

%U 22,23,24,25,26,27,28,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19

%N After the first zero, numbers from 0 to A255071(n)-1 followed by numbers from 0 to A255071(n+1)-1, etc.

%C An auxiliary sequence for computing A255122 and A255056.

%H Antti Karttunen, <a href="/A255120/b255120.txt">Table of n, a(n) for n = 0..721</a>

%F a(0) = 0; and for n >= 1, a(n) = n - A255062(A255121(n)).

%o (Scheme) (define (A255120 n) (if (zero? n) n (- n (A255062 (A255121 n)))))

%Y Cf. A255056, A255062, A255121, A255122.

%Y Similar sequence: A218601.

%K nonn

%O 0,7

%A _Antti Karttunen_, Feb 14 2015