The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A287476 a(0) = a(1) = 1; a(2*n) = a(n-a(n)), a(2*n+1) = a(n-a(n)) + a(n-a(n+1)). 4
 1, 1, 1, 2, 1, 2, 1, 2, 2, 3, 2, 3, 2, 3, 2, 4, 1, 3, 1, 3, 2, 4, 2, 5, 2, 5, 2, 5, 2, 4, 3, 5, 4, 7, 2, 3, 3, 7, 1, 4, 1, 2, 3, 6, 2, 5, 1, 5, 2, 5, 2, 7, 2, 6, 2, 7, 2, 4, 5, 7, 5, 10, 2, 7, 2, 7, 2, 7, 4, 9, 4, 8, 7, 11, 3, 6, 7, 9, 3, 4, 4, 5, 4, 5, 4, 7, 7, 9, 3, 7, 1, 3, 5, 7, 3, 8, 1, 7, 2, 7, 2 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,4 COMMENTS A variation on Hofstadter's Q-sequence and Stern's diatomic sequence. LINKS Eric Weisstein's World of Mathematics, Stern's Diatomic Series Eric Weisstein's World of Mathematics, Hofstadter's Q-Sequence MATHEMATICA a[0] = 1; a[1] = 1; a[n_] := If[EvenQ[n], a[n/2 - a[n/2]], a[(n - 1)/2 - a[(n - 1)/2]] + a[(n - 1)/2 - a[(n + 1)/2]]]; Table[a[n], {n, 0, 100}] CROSSREFS Cf. A002487, A005185, A287475, A287477. Sequence in context: A257695 A257694 A281543 * A185317 A008682 A112224 Adjacent sequences:  A287473 A287474 A287475 * A287477 A287478 A287479 KEYWORD nonn AUTHOR Ilya Gutkovskiy, May 25 2017 STATUS approved

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

Last modified September 22 14:03 EDT 2020. Contains 337289 sequences. (Running on oeis4.)