login
Distance between the positions of the first and the last occurrence of n in A155043: a(n) = A262503(n) - A261089(n).
6

%I #9 Oct 02 2015 12:11:09

%S 0,1,3,7,11,9,13,15,19,21,31,41,49,59,67,77,81,87,55,57,65,59,63,67,

%T 77,79,89,37,27,33,37,47,55,65,67,71,85,99,65,67,77,89,93,103,95,105,

%U 109,117,121,131,135,115,117,119,133,133,153,133,143,141,147,159,175,181,201,205,223,239,245,249,259,275,269,271,273,271,289,303,77

%N Distance between the positions of the first and the last occurrence of n in A155043: a(n) = A262503(n) - A261089(n).

%H Antti Karttunen, <a href="/A262505/b262505.txt">Table of n, a(n) for n = 0..110880</a>

%F a(n) = A262503(n) - A261089(n).

%F a(n) = A261103(n) + A262506(n).

%o (Scheme) (define (A262505 n) (- (A262503 n) (A261089 n)))

%Y Cf. A155043, A259934, A261089, A261103, A262503, A262506.

%Y Cf. A262508 (positions of zeros).

%Y Cf. A262507 (the number of occurrences of n in A155043).

%K nonn

%O 0,3

%A _Antti Karttunen_, Sep 25 2015