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”).

A265412
Partial sums of A265411.
4
1, 8, 11, 14, 15, 18, 19, 22, 23, 24, 27, 28, 29, 32, 33, 34, 35, 38, 39, 40, 41, 44, 45, 46, 47, 48, 51, 52, 53, 54, 55, 58, 59, 60, 61, 62, 63, 66, 67, 68, 69, 70, 71, 74, 75, 76, 77, 78, 79, 80, 83, 84, 85, 86, 87, 88, 89, 92, 93, 94, 95, 96, 97, 98, 99, 102, 103, 104, 105, 106, 107, 108, 109, 112, 113, 114, 115, 116, 117, 118, 119, 120, 123
OFFSET
0,2
LINKS
FORMULA
a(0) = 1; for n >= 1, a(n) = A265411(n) + a(n-1).
Other identities. For all n >= 0:
A265410(a(n)) = n. [Particularly: a(n) gives the position where n occurs for the last time in A265410.]
PROG
(Scheme) (definec (A265412 n) (if (zero? n) 1 (+ (A265411 n) (A265412 (- n 1)))))
CROSSREFS
Cf. A265410, A265411 (first differences), A265413.
Sequence in context: A247463 A308562 A254671 * A372498 A345488 A153039
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 09 2015
STATUS
approved