login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A373228
Relative of Hofstadter Q-sequence: a(n) = n for 1 <= n <= 8; a(n) = a(n-a(n-1)) + a(n-a(n-2)) + a(n-a(n-3)) for n > 8.
7
1, 2, 3, 4, 5, 6, 7, 8, 6, 9, 10, 11, 9, 12, 13, 14, 12, 15, 16, 17, 15, 18, 19, 17, 21, 18, 21, 23, 24, 19, 26, 23, 28, 24, 28, 27, 24, 31, 32, 28, 24, 36, 36, 33, 23, 37, 38, 40, 27, 39, 38, 42, 35, 41, 38, 43, 42, 44, 39, 44, 42, 51, 42, 45, 48, 47, 51, 44, 54, 48, 52, 49, 53
OFFSET
1,2
COMMENTS
Similar to A278055 but with different starting values.
Much like the Hofstadter Q-sequence A005185, it is not known if this sequence is defined for all positive n.
a(n) exists for n <= 3*10^7.
MATHEMATICA
a[n_] := a[n] = If[0 < n < 9, n, a[n-a[n-1]] + a[n-a[n-2]] + a[n-a[n-3]]];
Array[a, 100] (* Paolo Xausa, May 31 2024 *)
CROSSREFS
Similar sequences based on the Q-recurrence: A278056, A278057, A278058, A278059, A278060, A278061, A278062, A278063, A278064, A278065.
Sequence in context: A234741 A063917 A234344 * A331298 A325351 A363776
KEYWORD
nonn
AUTHOR
Nathan Fox, May 28 2024
STATUS
approved