|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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.
|
|
LINKS
|
|
|
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]]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|