This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A287475 #6 Feb 16 2025 08:33:46 %S A287475 0,1,1,0,1,2,0,1,1,1,2,2,0,2,1,0,1,2,1,2,2,2,2,3,0,2,2,2,1,3,0,1,1,1, %T A287475 2,1,1,3,2,4,2,2,2,4,2,4,3,5,0,2,2,6,2,0,2,4,1,4,3,5,0,3,1,0,1,2,1,2, %U A287475 2,2,1,4,1,2,3,3,2,3,4,4,2,4,2,8,2,4,4,6,2,4,4,4,3,6,5,7,0,3,2,10,2 %N A287475 a(0) = 0; a(1) = 1; a(2*n) = a(n), a(2*n+1) = a(n-a(n)) + a(n-a(n+1)). %C A287475 A variation on Hofstadter's Q-sequence and Stern's diatomic sequence. %H A287475 Michael Gilleland, <a href="/selfsimilar.html">Some Self-Similar Integer Sequences</a> %H A287475 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/SternsDiatomicSeries.html">Stern's Diatomic Series</a> %H A287475 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/HofstadtersQ-Sequence.html">Hofstadter's Q-Sequence</a> %H A287475 <a href="/index/St#Stern">Index entries for sequences related to Stern's sequences</a> %H A287475 <a href="/index/Ho#Hofstadter">Index entries for Hofstadter-type sequences</a> %t A287475 a[0] = 0; a[1] = 1; a[n_] := If[EvenQ[n], 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}] %Y A287475 Cf. A002487, A005185, A287476, A287477. %K A287475 nonn %O A287475 0,6 %A A287475 _Ilya Gutkovskiy_, May 25 2017