login
Partial sums of the characteristic function of A079599.
3

%I #7 Feb 01 2014 15:13:51

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

%T 10,10,10,10,10,10,11,11,12,12,12,12,12,12,13,13,14,14,14,14,14,14,15,

%U 15,16,16,16,16,16,16,17,17,18,18,18,18,18,18,19,19

%N Partial sums of the characteristic function of A079599.

%C This works also as almost an inverse function for A079599, as we have a(A079599(n)) = n+1 for all n.

%H Antti Karttunen, <a href="/A236678/b236678.txt">Table of n, a(n) for n = 0..8192</a>

%F a(0) = 1, and for n > 0, a(n) = a(n-1) + A236677(n).

%o (Scheme, with _Antti_Karttunen_'s IntSeq-library for memoizing definec-macro)

%o (definec (A236678 n) (if (zero? n) 1 (+ (A236678 (- n 1)) (A236677 n))))

%Y Not the same as A173711(n+6). First difference occurs at a(256), when 64 occurs here for the seventh time.

%Y Cf. A236677, A079599.

%K nonn

%O 0,3

%A _Antti Karttunen_, Jan 29 2014