login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A277814
a(n) = number of zeros in A277815[0..n].
5
0, 1, 2, 3, 4, 4, 5, 6, 7, 8, 8, 8, 9, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 15, 16, 16, 16, 16, 17, 17, 18, 19, 20, 21, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 25, 26, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 29, 29, 30, 31, 32, 33, 34, 34, 35, 35, 35, 35, 36, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 39
OFFSET
0,3
LINKS
PROG
(Scheme)
(define (A277814 n) (if (zero? n) n (+ (A277814 (- n 1)) (A000007 (A277815 n)))))
(define (A000007 n) (if (zero? n) 1 0))
CROSSREFS
Left inverse of A277817.
Sequence in context: A277425 A245335 A244230 * A006162 A036701 A053756
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 06 2016
STATUS
approved