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!)
A309416 a(n) = Sum_{k > 0} d^k(n), where d^k corresponds to the k-th iterate of A296239. 1
0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 2, 2, 1, 0, 1, 2, 3, 5, 3, 2, 1, 0, 1, 2, 3, 5, 5, 7, 7, 5, 5, 3, 2, 1, 0, 1, 2, 3, 5, 5, 7, 8, 8, 10, 12, 12, 10, 8, 8, 7, 5, 5, 3, 2, 1, 0, 1, 2, 3, 5, 5, 7, 8, 8, 10, 12, 13, 13, 13, 15, 17, 19, 22, 19, 17, 15, 13, 13, 13, 12 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,11
COMMENTS
Iterating A296239 from any nonnegative number always leads to the fixed point 0, hence the series in the name has only finitely many nonzero terms and is well defined.
LINKS
FORMULA
a(n) = 0 iff n is a Fibonacci number.
EXAMPLE
For n = 1024:
- A296239(1024) = 37,
- A296239(37) = 3,
- A296239(3) = 0,
- hence a(1024) = 37 + 3 = 40.
PROG
(PARI) A296239(n) = for (i=1, oo, if (n<=fibonacci(i), return (min(n-fibonacci(i-1), fibonacci(i)-n))))
a(n) = my (v=0); while (n=A296239(n), v+=n); return (v)
CROSSREFS
Sequence in context: A297964 A296239 A039800 * A251418 A172101 A301365
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jul 30 2019
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 May 1 16:12 EDT 2024. Contains 372175 sequences. (Running on oeis4.)