OFFSET
1,2
COMMENTS
Similar to Hofstadter's Q-sequence A005185 but with different starting values.
This sequence has exactly 199 terms, since a(199)=206 and computing a(200) would refer to a(-6).
LINKS
Nathan Fox, Table of n, a(n) for n = 1..199
Nathan Fox, Hofstadter-like Sequences over Nonstandard Integers, Talk given at the Rutgers Experimental Mathematics Seminar, November 10 2016.
MATHEMATICA
a[n_] := a[n] = If[0 < n < 12, n, a[n-a[n-1]] + a[n-a[n-2]]];
Array[a, 100] (* Paolo Xausa, May 30 2024 *)
PROG
(Magma) [n le 11 select n else Self(n-Self(n-1))+Self(n-Self(n-2)): n in [1..70]]; // Bruno Berselli, Nov 15 2016
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Nathan Fox, Nov 10 2016
STATUS
approved