OFFSET
1,2
COMMENTS
Similar to Hofstadter's Q-sequence A005185 but with different starting values.
This sequence has exactly 420 terms, since a(420)=430 and computing a(421) would refer to a(-9).
LINKS
Nathan Fox, Table of n, a(n) for n = 1..420
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 < 9, n, a[n-a[n-1]] + a[n-a[n-2]]];
Array[a, 100] (* Paolo Xausa, May 29 2024 *)
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Nathan Fox, Nov 10 2016
STATUS
approved