login
A246262
Inverse function to injection A246261, partial sums of A246260.
5
0, 1, 1, 2, 3, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 11, 11, 12, 12, 13, 13, 13, 14, 15, 15, 16, 17, 18, 19, 20, 21, 22, 23, 23, 24, 24, 25, 25, 25, 26, 27, 28, 28, 28, 29, 29, 29, 29, 30, 30, 31, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 34, 34, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 37, 38, 39
OFFSET
0,4
LINKS
FORMULA
a(0) = 0, and for n >= 1, a(n) = A246260(n) + a(n-1).
a(n) = n - A246264(n).
Other identities. For all n >= 1 the following holds:
a(A246261(n)) = n. [This works as an inverse function for A246261].
PROG
(Scheme, with memoization-macro definec)
(definec (A246262 n) (if (zero? n) n (+ (A246260 n) (A246262 (- n 1)))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 21 2014
STATUS
approved