|
|
A373233
|
|
Relative of Hofstadter Q-sequence: a(n) = 0 for n <= 0, a(n) = n for 1 <= n <= 13; a(n) = a(n-a(n-1)) + a(n-a(n-2)) + a(n-a(n-3)) for n > 13.
|
|
7
|
|
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 6, 14, 15, 16, 9, 17, 18, 19, 12, 20, 21, 22, 15, 23, 24, 17, 26, 18, 26, 28, 29, 22, 21, 37, 32, 18, 23, 38, 42, 24, 26, 39, 37, 37, 31, 33, 46, 32, 41, 38, 40, 36, 42, 49, 36, 46, 38, 56, 42, 48, 35, 62, 31, 52, 58, 59, 32, 43, 53, 82
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Similar to A278055 but with different starting values.
a(73) = 82. This is the smallest index for which a(n) > n. So, without the condition that a(n) = 0 for n <= 0, this sequence would be finite and have exactly 73 terms.
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] = Which[n < 1, 0, n < 14, n, True, a[n-a[n-1]] + a[n-a[n-2]] + a[n-a[n-3]]]; Array[a, 100] (* Paolo Xausa, May 31 2024 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|