login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A120506 A327041 A277267 * A275974 A052288 A280455
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 21 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 02:41 EDT 2024. Contains 371696 sequences. (Running on oeis4.)