login
A236678
Partial sums of the characteristic function of A079599.
3
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, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 16, 16, 16, 16, 16, 16, 17, 17, 18, 18, 18, 18, 18, 18, 19, 19
OFFSET
0,3
COMMENTS
This works also as almost an inverse function for A079599, as we have a(A079599(n)) = n+1 for all n.
LINKS
FORMULA
a(0) = 1, and for n > 0, a(n) = a(n-1) + A236677(n).
PROG
(Scheme, with _Antti_Karttunen_'s IntSeq-library for memoizing definec-macro)
(definec (A236678 n) (if (zero? n) 1 (+ (A236678 (- n 1)) (A236677 n))))
CROSSREFS
Not the same as A173711(n+6). First difference occurs at a(256), when 64 occurs here for the seventh time.
Sequence in context: A072114 A090621 A173711 * A029378 A053278 A035466
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 29 2014
STATUS
approved