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 A278066 #9 May 30 2024 16:57:50 %S A278066 5,2,5,2,5,7,2,12,2,12,2,12,7,4,14,14,10,14,7,14,6,26,10,4,20,33,2,33, %T A278066 2,33,2,33,2,38,2,38,2,38,7,4,40,40,10,40,7,14,6,78,10,4,46,85,2,85,2, %U A278066 85,2,85,2,85,2,85,2,85,2,85,2,85,2,85,2,85,2,85,2,85,2 %N A278066 Relative of Hofstadter Q-sequence: a(1) = 5, a(2) = 2; thereafter a(n) = a(n-a(n-1)) + a(n-a(n-2)). %C A278066 In calculating terms of this sequence, use the convention that a(n)=0 for n<=0. %C A278066 Most terms in this sequence alternate between 2 and a term of A275163. These runs are separated by 18 other terms, and each run is approximately twice as long as the previous. %H A278066 Nathan Fox, <a href="/A278066/b278066.txt">Table of n, a(n) for n = 1..10000</a> %H A278066 Nathan Fox, <a href="https://vimeo.com/191094180">Hofstadter-like Sequences over Nonstandard Integers"</a>, Talk given at the Rutgers Experimental Mathematics Seminar, November 10 2016. %F A278066 a(1) = 5, a(2) = 2, a(3) = 5, a(4) = 2, a(5) = 5, a(6) = 7, a(7) = 2; thereafter, for k>=0, %F A278066 a(A275163(k)+1)=A275163(k)+5 %F A278066 a(A275163(k)+2)=2 %F A278066 a(A275163(k)+3)=A275163(k)+5 %F A278066 a(A275163(k)+4)=2 %F A278066 a(A275163(k)+5)=A275163(k)+5 %F A278066 a(A275163(k)+6)=7 %F A278066 a(A275163(k)+7)=4 %F A278066 a(A275163(k)+8)=A275163(k)+7 %F A278066 a(A275163(k)+9)=A275163(k)+7 %F A278066 a(A275163(k)+10)=10 %F A278066 a(A275163(k)+11)=A275163(k)+7 %F A278066 a(A275163(k)+12)=7 %F A278066 a(A275163(k)+13)=14 %F A278066 a(A275163(k)+14)=6 %F A278066 a(A275163(k)+15)=2*A275163(k)+12 %F A278066 a(A275163(k)+16)=10 %F A278066 a(A275163(k)+17)=4 %F A278066 a(A275163(k)+18)=A275163(k)+13 %F A278066 a(A275163(k)+i)=A275163(k+1), i odd, 19<=i<A275163(k+1)-A275163(k) %F A278066 a(A275163(k)+i)=2, i odd, 20<=i<=A275163(k+1)-A275163(k). %t A278066 a[1] = 5; a[2] = 2; a[n_] := a[n] = If[n < 1, 0, a[n-a[n-1]] + a[n-a[n-2]]]; %t A278066 Array[a, 100] (* _Paolo Xausa_, May 30 2024 *) %Y A278066 Cf. A005185, A275163, A278067, A278068. %K A278066 nonn %O A278066 1,1 %A A278066 _Nathan Fox_, Nov 13 2016